diff options
Diffstat (limited to 'drivers/ide/pmac.c')
-rw-r--r-- | drivers/ide/pmac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c index 7a4e788cab2f..a167968a2d42 100644 --- a/drivers/ide/pmac.c +++ b/drivers/ide/pmac.c | |||
@@ -496,12 +496,11 @@ static void pmac_write_devctl(ide_hwif_t *hwif, u8 ctl) | |||
496 | /* | 496 | /* |
497 | * Old tuning functions (called on hdparm -p), sets up drive PIO timings | 497 | * Old tuning functions (called on hdparm -p), sets up drive PIO timings |
498 | */ | 498 | */ |
499 | static void | 499 | static void pmac_ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
500 | pmac_ide_set_pio_mode(ide_drive_t *drive, const u8 pio) | ||
501 | { | 500 | { |
502 | ide_hwif_t *hwif = drive->hwif; | ||
503 | pmac_ide_hwif_t *pmif = | 501 | pmac_ide_hwif_t *pmif = |
504 | (pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent); | 502 | (pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent); |
503 | const u8 pio = drive->pio_mode - XFER_PIO_0; | ||
505 | struct ide_timing *tim = ide_timing_find_mode(XFER_PIO_0 + pio); | 504 | struct ide_timing *tim = ide_timing_find_mode(XFER_PIO_0 + pio); |
506 | u32 *timings, t; | 505 | u32 *timings, t; |
507 | unsigned accessTicks, recTicks; | 506 | unsigned accessTicks, recTicks; |