From a99d9eca0bf45771136f63d549ec33e9ad79f571 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Sun, 27 Nov 2011 04:56:47 +0000 Subject: [PATCH] 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 --- firmware/drivers/ata.c | 10 +++++----- 1 file 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;