Add STORAGE_INIT_ATTR to static ata.c functions that are only called via ata_init().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31067 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Boris Gjenero 2011-11-27 04:56:47 +00:00
parent bd360b422a
commit a99d9eca0b

View file

@ -758,7 +758,7 @@ int ata_write_sectors(IF_MD2(int drive,)
} }
#endif /* MAX_PHYS_SECTOR_SIZE */ #endif /* MAX_PHYS_SECTOR_SIZE */
static int check_registers(void) static int STORAGE_INIT_ATTR check_registers(void)
{ {
int i; int i;
wait_for_bsy(); wait_for_bsy();
@ -1086,7 +1086,7 @@ static int ata_power_on(void)
return 0; return 0;
} }
static int master_slave_detect(void) static int STORAGE_INIT_ATTR master_slave_detect(void)
{ {
/* master? */ /* master? */
ATA_OUT8(ATA_SELECT, 0); ATA_OUT8(ATA_SELECT, 0);
@ -1107,7 +1107,7 @@ static int master_slave_detect(void)
return 0; return 0;
} }
static int identify(void) static int STORAGE_INIT_ATTR identify(void)
{ {
int i; int i;
@ -1261,7 +1261,7 @@ unsigned short* ata_get_identify(void)
return identify_info; return identify_info;
} }
static int init_and_check(bool hard_reset) static int STORAGE_INIT_ATTR init_and_check(bool hard_reset)
{ {
int rc; int rc;
@ -1288,7 +1288,7 @@ static int init_and_check(bool hard_reset)
return 0; return 0;
} }
int ata_init(void) int STORAGE_INIT_ATTR ata_init(void)
{ {
int rc = 0; int rc = 0;
bool coldstart; bool coldstart;