diff options
Diffstat (limited to 'drivers/ide/tx4938ide.c')
-rw-r--r-- | drivers/ide/tx4938ide.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/tx4938ide.c b/drivers/ide/tx4938ide.c index fd59c0d235b5..326d4683488b 100644 --- a/drivers/ide/tx4938ide.c +++ b/drivers/ide/tx4938ide.c | |||
@@ -56,11 +56,10 @@ static void tx4938ide_tune_ebusc(unsigned int ebus_ch, | |||
56 | &tx4938_ebuscptr->cr[ebus_ch]); | 56 | &tx4938_ebuscptr->cr[ebus_ch]); |
57 | } | 57 | } |
58 | 58 | ||
59 | static void tx4938ide_set_pio_mode(ide_drive_t *drive, const u8 pio) | 59 | static void tx4938ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
60 | { | 60 | { |
61 | ide_hwif_t *hwif = drive->hwif; | ||
62 | struct tx4938ide_platform_info *pdata = hwif->dev->platform_data; | 61 | struct tx4938ide_platform_info *pdata = hwif->dev->platform_data; |
63 | u8 safe = pio; | 62 | u8 safe = drive->pio_mode - XFER_PIO_0; |
64 | ide_drive_t *pair; | 63 | ide_drive_t *pair; |
65 | 64 | ||
66 | pair = ide_get_pair_dev(drive); | 65 | pair = ide_get_pair_dev(drive); |