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/opti621.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/opti621.c')
-rw-r--r-- | drivers/ide/opti621.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/opti621.c b/drivers/ide/opti621.c index 2052788fab7a..1a53a4c375ed 100644 --- a/drivers/ide/opti621.c +++ b/drivers/ide/opti621.c | |||
@@ -62,12 +62,12 @@ static u8 read_reg(int reg) | |||
62 | return ret; | 62 | return ret; |
63 | } | 63 | } |
64 | 64 | ||
65 | static void opti621_set_pio_mode(ide_drive_t *drive, const u8 pio) | 65 | static void opti621_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
66 | { | 66 | { |
67 | ide_hwif_t *hwif = drive->hwif; | ||
68 | ide_drive_t *pair = ide_get_pair_dev(drive); | 67 | ide_drive_t *pair = ide_get_pair_dev(drive); |
69 | unsigned long flags; | 68 | unsigned long flags; |
70 | unsigned long mode = XFER_PIO_0 + pio, pair_mode; | 69 | unsigned long mode = drive->pio_mode, pair_mode; |
70 | const u8 pio = mode - XFER_PIO_0; | ||
71 | u8 tim, misc, addr_pio = pio, clk; | 71 | u8 tim, misc, addr_pio = pio, clk; |
72 | 72 | ||
73 | /* DRDY is default 2 (by OPTi Databook) */ | 73 | /* DRDY is default 2 (by OPTi Databook) */ |