ide: use ->tf_load in actual_try_to_identify()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:53 +0000 (19:55 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:53 +0000 (19:55 +0200)
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>
drivers/ide/ide-probe.c

index 475bd7263184a62ed97038b81acae854d3526ede..970464317bd71cad1f424655960b4c2acf8a7ec6 100644 (file)
@@ -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);