diff options
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index c1ef8c8c785e..6a98d7c1681a 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -287,7 +287,7 @@ int ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id) | |||
287 | 287 | ||
288 | memset(&cmd, 0, sizeof(cmd)); | 288 | memset(&cmd, 0, sizeof(cmd)); |
289 | /* disable DMA & overlap */ | 289 | /* disable DMA & overlap */ |
290 | cmd.tf_flags = IDE_TFLAG_OUT_FEATURE; | 290 | cmd.valid.out.tf = IDE_VALID_FEATURE; |
291 | 291 | ||
292 | tp_ops->tf_load(drive, &cmd); | 292 | tp_ops->tf_load(drive, &cmd); |
293 | } | 293 | } |
@@ -340,7 +340,7 @@ static u8 ide_read_device(ide_drive_t *drive) | |||
340 | struct ide_cmd cmd; | 340 | struct ide_cmd cmd; |
341 | 341 | ||
342 | memset(&cmd, 0, sizeof(cmd)); | 342 | memset(&cmd, 0, sizeof(cmd)); |
343 | cmd.tf_flags = IDE_TFLAG_IN_DEVICE; | 343 | cmd.valid.in.tf = IDE_VALID_DEVICE; |
344 | 344 | ||
345 | drive->hwif->tp_ops->tf_read(drive, &cmd); | 345 | drive->hwif->tp_ops->tf_read(drive, &cmd); |
346 | 346 | ||