diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-07-15 15:21:44 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:44 -0400 |
commit | 124cafc5eb973e748c4ce3dc1caad29274e64613 (patch) | |
tree | aba8bd1322d15a80a92711980d7c89f702ea7703 /drivers/ide/ide-cd.c | |
parent | 5f2e1ceef45ac07d7c52d16de2531a56c453bb0f (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/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 792a3cf73d6e..7917cd576446 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -193,7 +193,7 @@ void ide_cd_init_rq(ide_drive_t *drive, struct request *rq) | |||
193 | { | 193 | { |
194 | struct cdrom_info *cd = drive->driver_data; | 194 | struct cdrom_info *cd = drive->driver_data; |
195 | 195 | ||
196 | ide_init_drive_cmd(rq); | 196 | blk_rq_init(NULL, rq); |
197 | rq->cmd_type = REQ_TYPE_ATA_PC; | 197 | rq->cmd_type = REQ_TYPE_ATA_PC; |
198 | rq->rq_disk = cd->disk; | 198 | rq->rq_disk = cd->disk; |
199 | } | 199 | } |