]> err.no Git - linux-2.6/blobdiff - drivers/ide/ide-io.c
[PATCH] blk: Use blk_queue_xxx functions to set parameters
[linux-2.6] / drivers / ide / ide-io.c
index 248e3cc8b3527dd37bbc8a60417a1658e46d8845..f174aee659e5e0d086314e6ba3ebcfb3c92249cc 100644 (file)
@@ -150,7 +150,7 @@ static void ide_complete_power_step(ide_drive_t *drive, struct request *rq, u8 s
 
        switch (rq->pm->pm_step) {
        case ide_pm_flush_cache:        /* Suspend step 1 (flush cache) complete */
-               if (rq->pm->pm_state == 4)
+               if (rq->pm->pm_state == PM_EVENT_FREEZE)
                        rq->pm->pm_step = ide_pm_state_completed;
                else
                        rq->pm->pm_step = idedisk_pm_standby;