diff options
Diffstat (limited to 'drivers/ide/ns87415.c')
-rw-r--r-- | drivers/ide/ns87415.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/ide/ns87415.c b/drivers/ide/ns87415.c index 0208dd35c1a3..3ab5bb196d2f 100644 --- a/drivers/ide/ns87415.c +++ b/drivers/ide/ns87415.c | |||
@@ -86,18 +86,19 @@ static void superio_tf_read(ide_drive_t *drive, struct ide_cmd *cmd) | |||
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 | outb(ATA_HOB | ATA_DEVCTL_OBS, io_ports->ctl_addr); |
88 | 88 | ||
89 | tf = &cmd->hob; | ||
89 | valid = cmd->valid.in.hob; | 90 | valid = cmd->valid.in.hob; |
90 | 91 | ||
91 | if (valid & IDE_VALID_ERROR) | 92 | if (valid & IDE_VALID_ERROR) |
92 | tf->hob_error = inb(io_ports->feature_addr); | 93 | tf->error = inb(io_ports->feature_addr); |
93 | if (valid & IDE_VALID_NSECT) | 94 | if (valid & IDE_VALID_NSECT) |
94 | tf->hob_nsect = inb(io_ports->nsect_addr); | 95 | tf->nsect = inb(io_ports->nsect_addr); |
95 | if (valid & IDE_VALID_LBAL) | 96 | if (valid & IDE_VALID_LBAL) |
96 | tf->hob_lbal = inb(io_ports->lbal_addr); | 97 | tf->lbal = inb(io_ports->lbal_addr); |
97 | if (valid & IDE_VALID_LBAM) | 98 | if (valid & IDE_VALID_LBAM) |
98 | tf->hob_lbam = inb(io_ports->lbam_addr); | 99 | tf->lbam = inb(io_ports->lbam_addr); |
99 | if (valid & IDE_VALID_LBAH) | 100 | if (valid & IDE_VALID_LBAH) |
100 | tf->hob_lbah = inb(io_ports->lbah_addr); | 101 | tf->lbah = inb(io_ports->lbah_addr); |
101 | } | 102 | } |
102 | } | 103 | } |
103 | 104 | ||