diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2009-03-31 14:15:29 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:29 -0400 |
commit | 4d74c3fcf2b90487eacec511bc8c07177711c81c (patch) | |
tree | 737b20b97f073b0275fcd9267fe09dc3126250af /drivers/ide/tx4939ide.c | |
parent | 47ab834854d4639fedf2ed2f21b41297f2abe1a7 (diff) |
ide: use ATA_HOB
Make use of ATA_HOB instead of hard-coded value in the 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/tx4939ide.c')
-rw-r--r-- | drivers/ide/tx4939ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c index faf0d97b9ce8..77aee5b2ce95 100644 --- a/drivers/ide/tx4939ide.c +++ b/drivers/ide/tx4939ide.c | |||
@@ -509,7 +509,7 @@ static void tx4939ide_tf_read(ide_drive_t *drive, struct ide_cmd *cmd) | |||
509 | } | 509 | } |
510 | 510 | ||
511 | /* be sure we're looking at the low order bits */ | 511 | /* be sure we're looking at the low order bits */ |
512 | tx4939ide_outb(ATA_DEVCTL_OBS & ~0x80, io_ports->ctl_addr); | 512 | tx4939ide_outb(ATA_DEVCTL_OBS, io_ports->ctl_addr); |
513 | 513 | ||
514 | if (cmd->tf_flags & IDE_TFLAG_IN_FEATURE) | 514 | if (cmd->tf_flags & IDE_TFLAG_IN_FEATURE) |
515 | tf->feature = tx4939ide_inb(io_ports->feature_addr); | 515 | tf->feature = tx4939ide_inb(io_ports->feature_addr); |
@@ -525,7 +525,7 @@ static void tx4939ide_tf_read(ide_drive_t *drive, struct ide_cmd *cmd) | |||
525 | tf->device = tx4939ide_inb(io_ports->device_addr); | 525 | tf->device = tx4939ide_inb(io_ports->device_addr); |
526 | 526 | ||
527 | if (cmd->tf_flags & IDE_TFLAG_LBA48) { | 527 | if (cmd->tf_flags & IDE_TFLAG_LBA48) { |
528 | tx4939ide_outb(ATA_DEVCTL_OBS | 0x80, io_ports->ctl_addr); | 528 | tx4939ide_outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr); |
529 | 529 | ||
530 | if (cmd->tf_flags & IDE_TFLAG_IN_HOB_FEATURE) | 530 | if (cmd->tf_flags & IDE_TFLAG_IN_HOB_FEATURE) |
531 | tf->hob_feature = | 531 | tf->hob_feature = |