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/ali14xx.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/ali14xx.c')
-rw-r--r-- | drivers/ide/ali14xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ali14xx.c b/drivers/ide/ali14xx.c index 90da1f953ed0..25b9fe3a9f8e 100644 --- a/drivers/ide/ali14xx.c +++ b/drivers/ide/ali14xx.c | |||
@@ -109,13 +109,14 @@ static DEFINE_SPINLOCK(ali14xx_lock); | |||
109 | * This function computes timing parameters | 109 | * This function computes timing parameters |
110 | * and sets controller registers accordingly. | 110 | * and sets controller registers accordingly. |
111 | */ | 111 | */ |
112 | static void ali14xx_set_pio_mode(ide_drive_t *drive, const u8 pio) | 112 | static void ali14xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
113 | { | 113 | { |
114 | int driveNum; | 114 | int driveNum; |
115 | int time1, time2; | 115 | int time1, time2; |
116 | u8 param1, param2, param3, param4; | 116 | u8 param1, param2, param3, param4; |
117 | unsigned long flags; | 117 | unsigned long flags; |
118 | int bus_speed = ide_vlb_clk ? ide_vlb_clk : 50; | 118 | int bus_speed = ide_vlb_clk ? ide_vlb_clk : 50; |
119 | const u8 pio = drive->pio_mode - XFER_PIO_0; | ||
119 | struct ide_timing *t = ide_timing_find_mode(XFER_PIO_0 + pio); | 120 | struct ide_timing *t = ide_timing_find_mode(XFER_PIO_0 + pio); |
120 | 121 | ||
121 | /* calculate timing, according to PIO mode */ | 122 | /* calculate timing, according to PIO mode */ |