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>
This commit is contained in:
@@ -82,7 +82,7 @@ static void it8213_tuneproc (ide_drive_t *drive, u8 pio)
|
||||
{ 2, 1 },
|
||||
{ 2, 3 }, };
|
||||
|
||||
pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
|
||||
pio = ide_get_best_pio_mode(drive, pio, 4);
|
||||
|
||||
spin_lock_irqsave(&tune_lock, flags);
|
||||
pci_read_config_word(dev, master_port, &master_data);
|
||||
@@ -214,7 +214,7 @@ static int it8213_config_drive_for_dma (ide_drive_t *drive)
|
||||
if (ide_tune_dma(drive))
|
||||
return 0;
|
||||
|
||||
pio = ide_get_best_pio_mode(drive, 255, 4, NULL);
|
||||
pio = ide_get_best_pio_mode(drive, 255, 4);
|
||||
it8213_tune_chipset(drive, XFER_PIO_0 + pio);
|
||||
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user