summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-11-27 04:56:47 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-11-27 04:56:47 +0000
commita99d9eca0bf45771136f63d549ec33e9ad79f571 (patch)
tree0f0bc1fec064cb5620e8fa7271888c258bddeb0e /firmware/drivers/ata.c
parentbd360b422ae4b03c3ef161ad5fd204feb9c6c62c (diff)
downloadrockbox-a99d9eca0bf45771136f63d549ec33e9ad79f571.tar.gz
rockbox-a99d9eca0bf45771136f63d549ec33e9ad79f571.zip
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
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 0d82efb07f..35dff56f6c 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -758,7 +758,7 @@ int ata_write_sectors(IF_MD2(int drive,)
}
#endif /* MAX_PHYS_SECTOR_SIZE */
-static int check_registers(void)
+static int STORAGE_INIT_ATTR check_registers(void)
{
int i;
wait_for_bsy();
@@ -1086,7 +1086,7 @@ static int ata_power_on(void)
return 0;
}
-static int master_slave_detect(void)
+static int STORAGE_INIT_ATTR master_slave_detect(void)
{
/* master? */
ATA_OUT8(ATA_SELECT, 0);
@@ -1107,7 +1107,7 @@ static int master_slave_detect(void)
return 0;
}
-static int identify(void)
+static int STORAGE_INIT_ATTR identify(void)
{
int i;
@@ -1261,7 +1261,7 @@ unsigned short* ata_get_identify(void)
return identify_info;
}
-static int init_and_check(bool hard_reset)
+static int STORAGE_INIT_ATTR init_and_check(bool hard_reset)
{
int rc;
@@ -1288,7 +1288,7 @@ static int init_and_check(bool hard_reset)
return 0;
}
-int ata_init(void)
+int STORAGE_INIT_ATTR ata_init(void)
{
int rc = 0;
bool coldstart;