diff options
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 | /* |