diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 20:13:11 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 20:13:11 +0100 |
commit | 145b75e9aedbe36c55e45da8564dcd0814bdd89e (patch) | |
tree | 2bf27bb6657b28d12404de416276bca1c2ba52a4 /drivers/ide/ide.c | |
parent | 2624565caacedd740fce7803fe2c162842aa5df4 (diff) | |
download | blackbird-op-linux-145b75e9aedbe36c55e45da8564dcd0814bdd89e.tar.gz blackbird-op-linux-145b75e9aedbe36c55e45da8564dcd0814bdd89e.zip |
ide: initialize rq->cmd_type in ide_init_drive_cmd() callers
* Initialize rq->cmd_type in ide_wait_cmd(), ide_cmd_ioctl() and
set_pio_mode() (other callers were aleady over-riding rq->cmd_type).
* Remove no longer needed rq->cmd_type setup from ide_init_drive_cmd().
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 52115ef1f01a..446b12850155 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c @@ -878,7 +878,10 @@ int set_pio_mode(ide_drive_t *drive, int arg) if (drive->special.b.set_tune) return -EBUSY; + ide_init_drive_cmd(&rq); + rq.cmd_type = REQ_TYPE_ATA_CMD; + drive->tune_req = (u8) arg; drive->special.b.set_tune = 1; (void) ide_do_drive_cmd(drive, &rq, ide_wait); |