ide: call write_devctl() method from tf_read() method
[deliverable/linux.git] / drivers / ide / scc_pata.c
index f5a6fa0a8bea0b162b5b5988a0eb38e7170cb0fe..feabf548704911b8b0f76bb2b0d1934024693940 100644 (file)
@@ -686,7 +686,7 @@ static void scc_tf_read(ide_drive_t *drive, struct ide_cmd *cmd)
        u8 valid = cmd->valid.in.tf;
 
        /* be sure we're looking at the low order bits */
-       scc_ide_outb(ATA_DEVCTL_OBS, io_ports->ctl_addr);
+       scc_write_devctl(hwif, ATA_DEVCTL_OBS);
 
        if (valid & IDE_VALID_ERROR)
                tf->error  = scc_ide_inb(io_ports->feature_addr);
@@ -702,7 +702,7 @@ static void scc_tf_read(ide_drive_t *drive, struct ide_cmd *cmd)
                tf->device = scc_ide_inb(io_ports->device_addr);
 
        if (cmd->tf_flags & IDE_TFLAG_LBA48) {
-               scc_ide_outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr);
+               scc_write_devctl(hwif, ATA_HOB | ATA_DEVCTL_OBS);
 
                tf = &cmd->hob;
                valid = cmd->valid.in.hob;
This page took 0.024848 seconds and 5 git commands to generate.