diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2007-02-17 23:22:37 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2007-02-17 23:22:37 +0000 |
commit | 2067fcc695852a5589d6dded27cde77e20380179 (patch) | |
tree | 4face0c925a271b5cdf25ca743b428c1a049790a /firmware/drivers | |
parent | d52ee4c0d6f1f63a57365dbf83a1d6dc0266fc5d (diff) |
Fix most (all?) CONFIG_LED warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12370 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 91aae158c6..c3c2531a2e 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -71,7 +71,7 @@ static struct mutex ata_mtx; int ata_device; /* device 0 (master) or 1 (slave) */ int ata_spinup_time = 0; -#if CONFIG_LED == LED_REAL +#if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) static bool ata_led_enabled = true; static bool ata_led_on = false; #endif @@ -152,7 +152,7 @@ STATICIRAM int wait_for_end_of_transfer(void) return (ATA_ALT_STATUS & (STATUS_RDY|STATUS_DRQ)) == STATUS_RDY; } -#if CONFIG_LED == LED_REAL +#if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) /* Conditionally block LED access for the ATA driver, so the LED can be * (mis)used for other purposes */ static void ata_led(bool on) @@ -1003,7 +1003,7 @@ int ata_init(void) return 0; } -#if CONFIG_LED == LED_REAL +#if defined(CONFIG_LED) && (CONFIG_LED == LED_REAL) void ata_set_led_enabled(bool enabled) { ata_led_enabled = enabled; |