diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 18:22:44 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 18:22:44 -0400 |
commit | 1866082339597930c5b77aad8de34ab4fbb5724f (patch) | |
tree | 364832322ceae98f41233fd095558b1700cf3634 /drivers/ide/ide-cd.c | |
parent | 65ca5377322c7543163066f373ae9e6b0ad8de8a (diff) |
ide: remove ide_do_drive_cmd()
* Use elv_add_request() instead of __elv_add_request() in ide_do_drive_cmd().
* ide_do_drive_cmd() is used only in ide-{atapi,cd}.c so inline it there.
There should be no functional changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index ddfbea41d296..2177cd11664c 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -242,7 +242,9 @@ static void cdrom_queue_request_sense(ide_drive_t *drive, void *sense, | |||
242 | ide_debug_log(IDE_DBG_SENSE, "failed_cmd: 0x%x\n", | 242 | ide_debug_log(IDE_DBG_SENSE, "failed_cmd: 0x%x\n", |
243 | failed_command->cmd[0]); | 243 | failed_command->cmd[0]); |
244 | 244 | ||
245 | ide_do_drive_cmd(drive, rq); | 245 | drive->hwif->rq = NULL; |
246 | |||
247 | elv_add_request(drive->queue, rq, ELEVATOR_INSERT_FRONT, 0); | ||
246 | } | 248 | } |
247 | 249 | ||
248 | static void cdrom_end_request(ide_drive_t *drive, int uptodate) | 250 | static void cdrom_end_request(ide_drive_t *drive, int uptodate) |