diff options
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 78776bbb537e..40b5a4614340 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -388,7 +388,7 @@ static int generic_ide_suspend(struct device *dev, pm_message_t mesg) | |||
388 | rq->cmd_type = REQ_TYPE_PM_SUSPEND; | 388 | rq->cmd_type = REQ_TYPE_PM_SUSPEND; |
389 | rq->special = &args; | 389 | rq->special = &args; |
390 | rq->data = &rqpm; | 390 | rq->data = &rqpm; |
391 | rqpm.pm_step = ide_pm_state_start_suspend; | 391 | rqpm.pm_step = IDE_PM_START_SUSPEND; |
392 | if (mesg.event == PM_EVENT_PRETHAW) | 392 | if (mesg.event == PM_EVENT_PRETHAW) |
393 | mesg.event = PM_EVENT_FREEZE; | 393 | mesg.event = PM_EVENT_FREEZE; |
394 | rqpm.pm_state = mesg.event; | 394 | rqpm.pm_state = mesg.event; |
@@ -427,7 +427,7 @@ static int generic_ide_resume(struct device *dev) | |||
427 | rq->cmd_flags |= REQ_PREEMPT; | 427 | rq->cmd_flags |= REQ_PREEMPT; |
428 | rq->special = &args; | 428 | rq->special = &args; |
429 | rq->data = &rqpm; | 429 | rq->data = &rqpm; |
430 | rqpm.pm_step = ide_pm_state_start_resume; | 430 | rqpm.pm_step = IDE_PM_START_RESUME; |
431 | rqpm.pm_state = PM_EVENT_ON; | 431 | rqpm.pm_state = PM_EVENT_ON; |
432 | 432 | ||
433 | err = blk_execute_rq(drive->queue, NULL, rq, 1); | 433 | err = blk_execute_rq(drive->queue, NULL, rq, 1); |