diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:58 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:58 -0400 |
commit | 2134758d2a5429325cee4d4ce8959af5314eeba1 (patch) | |
tree | cc0d1326c04522e70c1f52598c9aba29aa85170f /drivers/ide/pci/opti621.c | |
parent | e5fa4b2968ff0f32b5ecfa082fd6db50b731055e (diff) |
ide: drop "PIO data" argument from ide_get_best_pio_mode()
* Drop no longer needed "PIO data" argument from ide_get_best_pio_mode()
and convert all users accordingly.
* Remove no longer needed ide_pio_data_t.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/opti621.c')
-rw-r--r-- | drivers/ide/pci/opti621.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/pci/opti621.c b/drivers/ide/pci/opti621.c index 78d7adf2d0b0..1802ad0927eb 100644 --- a/drivers/ide/pci/opti621.c +++ b/drivers/ide/pci/opti621.c | |||
@@ -147,12 +147,12 @@ static void compute_pios(ide_drive_t *drive, u8 pio) | |||
147 | int d; | 147 | int d; |
148 | ide_hwif_t *hwif = HWIF(drive); | 148 | ide_hwif_t *hwif = HWIF(drive); |
149 | 149 | ||
150 | drive->drive_data = ide_get_best_pio_mode(drive, pio, OPTI621_MAX_PIO, NULL); | 150 | drive->drive_data = ide_get_best_pio_mode(drive, pio, OPTI621_MAX_PIO); |
151 | for (d = 0; d < 2; ++d) { | 151 | for (d = 0; d < 2; ++d) { |
152 | drive = &hwif->drives[d]; | 152 | drive = &hwif->drives[d]; |
153 | if (drive->present) { | 153 | if (drive->present) { |
154 | if (drive->drive_data == PIO_DONT_KNOW) | 154 | if (drive->drive_data == PIO_DONT_KNOW) |
155 | drive->drive_data = ide_get_best_pio_mode(drive, 255, OPTI621_MAX_PIO, NULL); | 155 | drive->drive_data = ide_get_best_pio_mode(drive, 255, OPTI621_MAX_PIO); |
156 | #ifdef OPTI621_DEBUG | 156 | #ifdef OPTI621_DEBUG |
157 | printk("%s: Selected PIO mode %d\n", | 157 | printk("%s: Selected PIO mode %d\n", |
158 | drive->name, drive->drive_data); | 158 | drive->name, drive->drive_data); |