diff options
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index e3b4e659082d..f8567c8c9dd1 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -427,9 +427,8 @@ static void ide_disk_unlock_native_capacity(ide_drive_t *drive) | |||
427 | drive->dev_flags |= IDE_DFLAG_NOHPA; /* disable HPA on resume */ | 427 | drive->dev_flags |= IDE_DFLAG_NOHPA; /* disable HPA on resume */ |
428 | } | 428 | } |
429 | 429 | ||
430 | static int idedisk_prep_fn(struct request_queue *q, struct request *rq) | 430 | static int idedisk_prep_fn(ide_drive_t *drive, struct request *rq) |
431 | { | 431 | { |
432 | ide_drive_t *drive = q->queuedata; | ||
433 | struct ide_cmd *cmd; | 432 | struct ide_cmd *cmd; |
434 | 433 | ||
435 | if (req_op(rq) != REQ_OP_FLUSH) | 434 | if (req_op(rq) != REQ_OP_FLUSH) |
@@ -548,7 +547,7 @@ static void update_flush(ide_drive_t *drive) | |||
548 | 547 | ||
549 | if (barrier) { | 548 | if (barrier) { |
550 | wc = true; | 549 | wc = true; |
551 | blk_queue_prep_rq(drive->queue, idedisk_prep_fn); | 550 | drive->prep_rq = idedisk_prep_fn; |
552 | } | 551 | } |
553 | } | 552 | } |
554 | 553 | ||