diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2010-01-19 04:44:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-19 04:44:41 -0500 |
commit | e085b3cae85af47eb0a3eda3186bd898310fb322 (patch) | |
tree | 7f7fea27f1398558a63e58b2f52347ae93383bac /drivers/ide/pmac.c | |
parent | 3fccaa192b9501e79a57e02e62b6bf420d2b461e (diff) |
ide: change ->set_pio_mode method parameters
Change ->set_pio_mode method parameters to match ->set_piomode method
used in struct ata_port_operations.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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; |