diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-07-15 15:21:43 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:43 -0400 |
commit | 6fe162381e547f457252e68521eb42fd36ec1418 (patch) | |
tree | 5bbff974c93141c8c58b8b48865f0bc56f32f1ae /drivers/ide/ide-floppy.c | |
parent | dd47087bc173a84e8c42644b315d38b30dc02263 (diff) |
ide-floppy: convert ide_do_drive_cmd path to use blk_execute_rq
This converts the ide_do_drive_cmd path using ide_wait to use
blk_execute_rq.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Borislav Petkov <petkovbb@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 7d75240c2e26..b10e9a813cde 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -887,14 +887,16 @@ static ide_startstop_t idefloppy_do_request(ide_drive_t *drive, | |||
887 | static int idefloppy_queue_pc_tail(ide_drive_t *drive, struct ide_atapi_pc *pc) | 887 | static int idefloppy_queue_pc_tail(ide_drive_t *drive, struct ide_atapi_pc *pc) |
888 | { | 888 | { |
889 | struct ide_floppy_obj *floppy = drive->driver_data; | 889 | struct ide_floppy_obj *floppy = drive->driver_data; |
890 | struct request rq; | 890 | struct request *rq; |
891 | int error; | ||
891 | 892 | ||
892 | ide_init_drive_cmd(&rq); | 893 | rq = blk_get_request(drive->queue, READ, __GFP_WAIT); |
893 | rq.buffer = (char *) pc; | 894 | rq->buffer = (char *) pc; |
894 | rq.cmd_type = REQ_TYPE_SPECIAL; | 895 | rq->cmd_type = REQ_TYPE_SPECIAL; |
895 | rq.rq_disk = floppy->disk; | 896 | error = blk_execute_rq(drive->queue, floppy->disk, rq, 0); |
897 | blk_put_request(rq); | ||
896 | 898 | ||
897 | return ide_do_drive_cmd(drive, &rq, ide_wait); | 899 | return error; |
898 | } | 900 | } |
899 | 901 | ||
900 | /* | 902 | /* |