summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-18 05:07:19 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-18 05:07:19 +0000
commitbd47d48c21ddcdd56b3654db78613d93739b8ce7 (patch)
tree78ddd13c384995b4220adc2c85eff233956420d2 /firmware/drivers/ata.c
parentac61951452e001da48430d8487521ad32b7a123c (diff)
downloadrockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.tar.gz
rockbox-bd47d48c21ddcdd56b3654db78613d93739b8ce7.zip
Do the CONFIG_LED define
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12383 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index c3c2531a2e..54a1b12143 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -71,7 +71,7 @@ static struct mutex ata_mtx;
71int ata_device; /* device 0 (master) or 1 (slave) */ 71int ata_device; /* device 0 (master) or 1 (slave) */
72 72
73int ata_spinup_time = 0; 73int ata_spinup_time = 0;
74#if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) 74#if (CONFIG_LED == LED_REAL)
75static bool ata_led_enabled = true; 75static bool ata_led_enabled = true;
76static bool ata_led_on = false; 76static bool ata_led_on = false;
77#endif 77#endif
@@ -152,7 +152,7 @@ STATICIRAM int wait_for_end_of_transfer(void)
152 return (ATA_ALT_STATUS & (STATUS_RDY|STATUS_DRQ)) == STATUS_RDY; 152 return (ATA_ALT_STATUS & (STATUS_RDY|STATUS_DRQ)) == STATUS_RDY;
153} 153}
154 154
155#if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) 155#if (CONFIG_LED == LED_REAL)
156/* Conditionally block LED access for the ATA driver, so the LED can be 156/* Conditionally block LED access for the ATA driver, so the LED can be
157 * (mis)used for other purposes */ 157 * (mis)used for other purposes */
158static void ata_led(bool on) 158static void ata_led(bool on)
@@ -1003,7 +1003,7 @@ int ata_init(void)
1003 return 0; 1003 return 0;
1004} 1004}
1005 1005
1006#if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) 1006#if (CONFIG_LED == LED_REAL)
1007void ata_set_led_enabled(bool enabled) 1007void ata_set_led_enabled(bool enabled)
1008{ 1008{
1009 ata_led_enabled = enabled; 1009 ata_led_enabled = enabled;