aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ide-scsi.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-07-15 15:21:44 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-15 15:21:44 -0400
commit124cafc5eb973e748c4ce3dc1caad29274e64613 (patch)
treeaba8bd1322d15a80a92711980d7c89f702ea7703 /drivers/scsi/ide-scsi.c
parent5f2e1ceef45ac07d7c52d16de2531a56c453bb0f (diff)
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/scsi/ide-scsi.c')
-rw-r--r--drivers/scsi/ide-scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index 89ecf0132191..da261806d62a 100644
--- a/drivers/scsi/ide-scsi.c
+++ b/drivers/scsi/ide-scsi.c
@@ -228,7 +228,7 @@ static int idescsi_check_condition(ide_drive_t *drive,
228 kfree(pc); 228 kfree(pc);
229 return -ENOMEM; 229 return -ENOMEM;
230 } 230 }
231 ide_init_drive_cmd(rq); 231 blk_rq_init(NULL, rq);
232 rq->special = (char *) pc; 232 rq->special = (char *) pc;
233 pc->rq = rq; 233 pc->rq = rq;
234 pc->buf = buf; 234 pc->buf = buf;
@@ -786,7 +786,7 @@ static int idescsi_queue (struct scsi_cmnd *cmd,
786 } 786 }
787 } 787 }
788 788
789 ide_init_drive_cmd (rq); 789 blk_rq_init(NULL, rq);
790 rq->special = (char *) pc; 790 rq->special = (char *) pc;
791 rq->cmd_type = REQ_TYPE_SPECIAL; 791 rq->cmd_type = REQ_TYPE_SPECIAL;
792 spin_unlock_irq(host->host_lock); 792 spin_unlock_irq(host->host_lock);