diff options
-rw-r--r-- | drivers/ide/ide-io.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 1adc5e2e7fb3..3c52317d8524 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -481,11 +481,10 @@ repeat: | |||
481 | prev_port = hwif->host->cur_port; | 481 | prev_port = hwif->host->cur_port; |
482 | hwif->rq = NULL; | 482 | hwif->rq = NULL; |
483 | 483 | ||
484 | if (drive->dev_flags & IDE_DFLAG_SLEEPING) { | 484 | if (drive->dev_flags & IDE_DFLAG_SLEEPING && |
485 | if (time_before(drive->sleep, jiffies)) { | 485 | time_after(drive->sleep, jiffies)) { |
486 | ide_unlock_port(hwif); | 486 | ide_unlock_port(hwif); |
487 | goto plug_device; | 487 | goto plug_device; |
488 | } | ||
489 | } | 488 | } |
490 | 489 | ||
491 | if ((hwif->host->host_flags & IDE_HFLAG_SERIALIZE) && | 490 | if ((hwif->host->host_flags & IDE_HFLAG_SERIALIZE) && |