diff options
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r-- | drivers/ide/ide-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 248e3cc8b352..f174aee659e5 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_drive_t *drive, struct request *rq, u8 s | |||
150 | 150 | ||
151 | switch (rq->pm->pm_step) { | 151 | switch (rq->pm->pm_step) { |
152 | case ide_pm_flush_cache: /* Suspend step 1 (flush cache) complete */ | 152 | case ide_pm_flush_cache: /* Suspend step 1 (flush cache) complete */ |
153 | if (rq->pm->pm_state == 4) | 153 | if (rq->pm->pm_state == PM_EVENT_FREEZE) |
154 | rq->pm->pm_step = ide_pm_state_completed; | 154 | rq->pm->pm_step = ide_pm_state_completed; |
155 | else | 155 | else |
156 | rq->pm->pm_step = idedisk_pm_standby; | 156 | rq->pm->pm_step = idedisk_pm_standby; |