aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ns87415.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2009-04-08 08:13:02 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-04-08 08:13:02 -0400
commit30881b9ac91e7c23e0ceb8414ab7de1961809bdd (patch)
tree16ef2aa160d888fb109b4fd146925a1b1178c1aa /drivers/ide/ns87415.c
parent4109d19af73826aa6fee1a1b951670381be88f8b (diff)
ide: call write_devctl() method from tf_read() method
Use write_devctl() method to clear/set the HOB bit in tf_read() method. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ns87415.c')
-rw-r--r--drivers/ide/ns87415.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ns87415.c b/drivers/ide/ns87415.c
index 3ab5bb196d2f..f1305f4d2be7 100644
--- a/drivers/ide/ns87415.c
+++ b/drivers/ide/ns87415.c
@@ -68,7 +68,7 @@ static void superio_tf_read(ide_drive_t *drive, struct ide_cmd *cmd)
68 u8 valid = cmd->valid.in.tf; 68 u8 valid = cmd->valid.in.tf;
69 69
70 /* be sure we're looking at the low order bits */ 70 /* be sure we're looking at the low order bits */
71 outb(ATA_DEVCTL_OBS, io_ports->ctl_addr); 71 ide_write_devctl(hwif, ATA_DEVCTL_OBS);
72 72
73 if (valid & IDE_VALID_ERROR) 73 if (valid & IDE_VALID_ERROR)
74 tf->error = inb(io_ports->feature_addr); 74 tf->error = inb(io_ports->feature_addr);
@@ -84,7 +84,7 @@ static void superio_tf_read(ide_drive_t *drive, struct ide_cmd *cmd)
84 tf->device = superio_ide_inb(io_ports->device_addr); 84 tf->device = superio_ide_inb(io_ports->device_addr);
85 85
86 if (cmd->tf_flags & IDE_TFLAG_LBA48) { 86 if (cmd->tf_flags & IDE_TFLAG_LBA48) {
87 outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr); 87 ide_write_devctl(hwif, ATA_HOB | ATA_DEVCTL_OBS);
88 88
89 tf = &cmd->hob; 89 tf = &cmd->hob;
90 valid = cmd->valid.in.hob; 90 valid = cmd->valid.in.hob;