ide: call write_devctl() method from tf_read() method
[deliverable/linux.git] / drivers / ide / ns87415.c
index 3ab5bb196d2f2c9a9e2a2225a087a676696cbb0c..f1305f4d2be73b79ca3b65e7eca3d7da7cf728b2 100644 (file)
@@ -68,7 +68,7 @@ static void superio_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 */
-       outb(ATA_DEVCTL_OBS, io_ports->ctl_addr);
+       ide_write_devctl(hwif, ATA_DEVCTL_OBS);
 
        if (valid & IDE_VALID_ERROR)
                tf->error  = inb(io_ports->feature_addr);
@@ -84,7 +84,7 @@ static void superio_tf_read(ide_drive_t *drive, struct ide_cmd *cmd)
                tf->device = superio_ide_inb(io_ports->device_addr);
 
        if (cmd->tf_flags & IDE_TFLAG_LBA48) {
-               outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr);
+               ide_write_devctl(hwif, ATA_HOB | ATA_DEVCTL_OBS);
 
                tf = &cmd->hob;
                valid = cmd->valid.in.hob;
This page took 0.023913 seconds and 5 git commands to generate.