aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-io.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-04-18 18:00:43 -0400
committerTejun Heo <tj@kernel.org>2009-04-18 18:00:43 -0400
commitfc38b521dcffcb07447cd98fedc56f495c10b90d (patch)
treecc0fdc986970179c95612f8d3dc9c06c78fa6d53 /drivers/ide/ide-io.c
parent5c4be57249e2e09136446597d2fe2a967c6ffef0 (diff)
ide-pm: don't abuse rq->data
Impact: cleanup rq->data usage ide-pm uses rq->data to carry pointer to struct request_pm_state through request queue and rq->special is used to carray pointer to local struct ide_cmd, which isn't necessary. Use rq->special for request_pm_state instead and use local ide_cmd in ide_start_power_step(). Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r--drivers/ide/ide-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 3245c2dbda33..6e3094e22775 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -368,7 +368,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
368 if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) 368 if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE)
369 return execute_drive_cmd(drive, rq); 369 return execute_drive_cmd(drive, rq);
370 else if (blk_pm_request(rq)) { 370 else if (blk_pm_request(rq)) {
371 struct request_pm_state *pm = rq->data; 371 struct request_pm_state *pm = rq->special;
372#ifdef DEBUG_PM 372#ifdef DEBUG_PM
373 printk("%s: start_power_step(step: %d)\n", 373 printk("%s: start_power_step(step: %d)\n",
374 drive->name, pm->pm_step); 374 drive->name, pm->pm_step);