diff options
Diffstat (limited to 'drivers/ide/ns87415.c')
-rw-r--r-- | drivers/ide/ns87415.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/ide/ns87415.c b/drivers/ide/ns87415.c index 0a6cf74c3265..7d64bc079fa8 100644 --- a/drivers/ide/ns87415.c +++ b/drivers/ide/ns87415.c | |||
@@ -67,10 +67,12 @@ static void superio_tf_read(ide_drive_t *drive, struct ide_cmd *cmd) | |||
67 | struct ide_taskfile *tf = &cmd->tf; | 67 | struct ide_taskfile *tf = &cmd->tf; |
68 | 68 | ||
69 | if (cmd->ftf_flags & IDE_FTFLAG_IN_DATA) { | 69 | if (cmd->ftf_flags & IDE_FTFLAG_IN_DATA) { |
70 | u16 data = inw(io_ports->data_addr); | 70 | u8 data[2]; |
71 | 71 | ||
72 | tf->data = data & 0xff; | 72 | ide_input_data(drive, cmd, data, 2); |
73 | tf->hob_data = (data >> 8) & 0xff; | 73 | |
74 | tf->data = data[0]; | ||
75 | tf->hob_data = data[1]; | ||
74 | } | 76 | } |
75 | 77 | ||
76 | /* be sure we're looking at the low order bits */ | 78 | /* be sure we're looking at the low order bits */ |