diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 3f266f2c0b..5a08db4f33 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -577,6 +577,7 @@ static void ata_thread(void) | |||
577 | } | 577 | } |
578 | queue_wait(&ata_queue, &ev); | 578 | queue_wait(&ata_queue, &ev); |
579 | switch ( ev.id ) { | 579 | switch ( ev.id ) { |
580 | #ifndef USB_NONE | ||
580 | case SYS_USB_CONNECTED: | 581 | case SYS_USB_CONNECTED: |
581 | if (poweroff) { | 582 | if (poweroff) { |
582 | mutex_lock(&ata_mtx); | 583 | mutex_lock(&ata_mtx); |
@@ -593,7 +594,7 @@ static void ata_thread(void) | |||
593 | /* Wait until the USB cable is extracted again */ | 594 | /* Wait until the USB cable is extracted again */ |
594 | usb_wait_for_disconnect(&ata_queue); | 595 | usb_wait_for_disconnect(&ata_queue); |
595 | break; | 596 | break; |
596 | 597 | #endif | |
597 | case Q_SLEEP: | 598 | case Q_SLEEP: |
598 | last_disk_activity = current_tick - sleep_timeout + (HZ/2); | 599 | last_disk_activity = current_tick - sleep_timeout + (HZ/2); |
599 | break; | 600 | break; |