aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-io.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-24 18:22:44 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-24 18:22:44 -0400
commit1866082339597930c5b77aad8de34ab4fbb5724f (patch)
tree364832322ceae98f41233fd095558b1700cf3634 /drivers/ide/ide-io.c
parent65ca5377322c7543163066f373ae9e6b0ad8de8a (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-io.c')
-rw-r--r--drivers/ide/ide-io.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 557b15700ea2..56be3375bee4 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -1129,34 +1129,6 @@ out_early:
1129} 1129}
1130EXPORT_SYMBOL_GPL(ide_intr); 1130EXPORT_SYMBOL_GPL(ide_intr);
1131 1131
1132/**
1133 * ide_do_drive_cmd - issue IDE special command
1134 * @drive: device to issue command
1135 * @rq: request to issue
1136 *
1137 * This function issues a special IDE device request
1138 * onto the request queue.
1139 *
1140 * the rq is queued at the head of the request queue, displacing
1141 * the currently-being-processed request and this function
1142 * returns immediately without waiting for the new rq to be
1143 * completed. This is VERY DANGEROUS, and is intended for
1144 * careful use by the ATAPI tape/cdrom driver code.
1145 */
1146
1147void ide_do_drive_cmd(ide_drive_t *drive, struct request *rq)
1148{
1149 struct request_queue *q = drive->queue;
1150 unsigned long flags;
1151
1152 drive->hwif->rq = NULL;
1153
1154 spin_lock_irqsave(q->queue_lock, flags);
1155 __elv_add_request(q, rq, ELEVATOR_INSERT_FRONT, 0);
1156 spin_unlock_irqrestore(q->queue_lock, flags);
1157}
1158EXPORT_SYMBOL(ide_do_drive_cmd);
1159
1160void ide_pad_transfer(ide_drive_t *drive, int write, int len) 1132void ide_pad_transfer(ide_drive_t *drive, int write, int len)
1161{ 1133{
1162 ide_hwif_t *hwif = drive->hwif; 1134 ide_hwif_t *hwif = drive->hwif;