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/via82cxxx.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/via82cxxx.c')
-rw-r--r-- | drivers/ide/via82cxxx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/via82cxxx.c b/drivers/ide/via82cxxx.c index fbecf8ea8207..6d995fc9d4f5 100644 --- a/drivers/ide/via82cxxx.c +++ b/drivers/ide/via82cxxx.c | |||
@@ -208,15 +208,15 @@ static void via_set_drive(ide_drive_t *drive, const u8 speed) | |||
208 | 208 | ||
209 | /** | 209 | /** |
210 | * via_set_pio_mode - set host controller for PIO mode | 210 | * via_set_pio_mode - set host controller for PIO mode |
211 | * @hwif: port | ||
211 | * @drive: drive | 212 | * @drive: drive |
212 | * @pio: PIO mode number | ||
213 | * | 213 | * |
214 | * A callback from the upper layers for PIO-only tuning. | 214 | * A callback from the upper layers for PIO-only tuning. |
215 | */ | 215 | */ |
216 | 216 | ||
217 | static void via_set_pio_mode(ide_drive_t *drive, const u8 pio) | 217 | static void via_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
218 | { | 218 | { |
219 | via_set_drive(drive, XFER_PIO_0 + pio); | 219 | via_set_drive(drive, drive->pio_mode); |
220 | } | 220 | } |
221 | 221 | ||
222 | static struct via_isa_bridge *via_config_find(struct pci_dev **isa) | 222 | static struct via_isa_bridge *via_config_find(struct pci_dev **isa) |