diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index a3dd8be241..ec4b342beb 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -512,7 +512,9 @@ static void copy_read_sectors(unsigned char* buf, int wordcount) | |||
512 | #endif | 512 | #endif |
513 | } | 513 | } |
514 | 514 | ||
515 | #ifdef CONFIG_LED | 515 | #if CONFIG_LED == LED_REAL |
516 | /* Conditionally block LED access for the ATA driver, so the LED can be | ||
517 | * (mis)used for other purposes */ | ||
516 | static void ata_led(bool on) { | 518 | static void ata_led(bool on) { |
517 | ata_led_on = on; | 519 | ata_led_on = on; |
518 | if (ata_led_enabled) { | 520 | if (ata_led_enabled) { |
@@ -520,7 +522,7 @@ static void ata_led(bool on) { | |||
520 | } | 522 | } |
521 | } | 523 | } |
522 | #else | 524 | #else |
523 | #define ata_led(on) | 525 | #define ata_led(on) led(on) |
524 | #endif | 526 | #endif |
525 | 527 | ||
526 | int ata_read_sectors(IF_MV2(int drive,) | 528 | int ata_read_sectors(IF_MV2(int drive,) |