summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
authorFUJITA Tomonori2008-07-15 21:21:44 +0200
committerBartlomiej Zolnierkiewicz2008-07-15 21:21:44 +0200
commit124cafc5eb973e748c4ce3dc1caad29274e64613 (patch)
treeaba8bd1322d15a80a92711980d7c89f702ea7703 /drivers/ide/ide-floppy.c
parentide: remove ide_wait/head_wait path in ide_do_drive_cmd (diff)
downloadkernel-qcow2-linux-124cafc5eb973e748c4ce3dc1caad29274e64613.tar.gz
kernel-qcow2-linux-124cafc5eb973e748c4ce3dc1caad29274e64613.tar.xz
kernel-qcow2-linux-124cafc5eb973e748c4ce3dc1caad29274e64613.zip
ide: remove ide_init_drive_cmd
ide_init_drive_cmd just calls blk_rq_init. This converts the users of ide_init_drive_cmd to use blk_rq_init directly and removes ide_init_drive_cmd. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index b10e9a813cde..9161cd92a842 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -286,7 +286,7 @@ static void idefloppy_queue_pc_head(ide_drive_t *drive, struct ide_atapi_pc *pc,
{
struct ide_floppy_obj *floppy = drive->driver_data;
- ide_init_drive_cmd(rq);
+ blk_rq_init(NULL, rq);
rq->buffer = (char *) pc;
rq->cmd_type = REQ_TYPE_SPECIAL;
rq->cmd_flags |= REQ_PREEMPT;