Skip to content

Commit

Permalink
ide: use ->tf_load in actual_try_to_identify()
Browse files Browse the repository at this point in the history
Convert actual_try_to_identify() to use ->tf_load instead of ->OUTB.

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 23, 2008
1 parent 59be2c8 commit 4e65837
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,15 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd)
/* set features register for atapi
* identify command to be sure of reply
*/
if ((cmd == WIN_PIDENTIFY))
/* disable dma & overlap */
hwif->OUTB(0, io_ports->feature_addr);
if (cmd == WIN_PIDENTIFY) {
ide_task_t task;

memset(&task, 0, sizeof(task));
/* disable DMA & overlap */
task.tf_flags = IDE_TFLAG_OUT_FEATURE;

drive->hwif->tf_load(drive, &task);
}

/* ask drive for ID */
hwif->exec_command(hwif, cmd);
Expand Down

0 comments on commit 4e65837

Please sign in to comment.