aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-xfer-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-xfer-mode.c')
-rw-r--r--drivers/ide/ide-xfer-mode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ide-xfer-mode.c b/drivers/ide/ide-xfer-mode.c
index c232386..a62fb03 100644
--- a/drivers/ide/ide-xfer-mode.c
+++ b/drivers/ide/ide-xfer-mode.c
@@ -136,7 +136,7 @@ int ide_set_pio_mode(ide_drive_t *drive, const u8 mode)
*/
if (port_ops->set_dma_mode == NULL) {
drive->pio_mode = mode;
- port_ops->set_pio_mode(drive, mode - XFER_PIO_0);
+ port_ops->set_pio_mode(hwif, drive);
return 0;
}
@@ -144,11 +144,11 @@ int ide_set_pio_mode(ide_drive_t *drive, const u8 mode)
if (ide_config_drive_speed(drive, mode))
return -1;
drive->pio_mode = mode;
- port_ops->set_pio_mode(drive, mode - XFER_PIO_0);
+ port_ops->set_pio_mode(hwif, drive);
return 0;
} else {
drive->pio_mode = mode;
- port_ops->set_pio_mode(drive, mode - XFER_PIO_0);
+ port_ops->set_pio_mode(hwif, drive);
return ide_config_drive_speed(drive, mode);
}
}