diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2010-01-19 04:45:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-19 04:45:29 -0500 |
commit | 8776168ca2151850164af1de5565d01f7b8b2c53 (patch) | |
tree | 28a44a3a649e1ab98f89674a06cc4c135a16d243 /drivers/ide/it821x.c | |
parent | e085b3cae85af47eb0a3eda3186bd898310fb322 (diff) |
ide: change ->set_dma_mode method parameters
Change ->set_dma_mode method parameters to match ->set_dmamode method
used in struct ata_port_operations.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/it821x.c')
-rw-r--r-- | drivers/ide/it821x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c index 69becb7b9656..56b79194156b 100644 --- a/drivers/ide/it821x.c +++ b/drivers/ide/it821x.c | |||
@@ -393,14 +393,16 @@ static int it821x_dma_end(ide_drive_t *drive) | |||
393 | 393 | ||
394 | /** | 394 | /** |
395 | * it821x_set_dma_mode - set host controller for DMA mode | 395 | * it821x_set_dma_mode - set host controller for DMA mode |
396 | * @hwif: port | ||
396 | * @drive: drive | 397 | * @drive: drive |
397 | * @speed: DMA mode | ||
398 | * | 398 | * |
399 | * Tune the ITE chipset for the desired DMA mode. | 399 | * Tune the ITE chipset for the desired DMA mode. |
400 | */ | 400 | */ |
401 | 401 | ||
402 | static void it821x_set_dma_mode(ide_drive_t *drive, const u8 speed) | 402 | static void it821x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
403 | { | 403 | { |
404 | const u8 speed = drive->dma_mode; | ||
405 | |||
404 | /* | 406 | /* |
405 | * MWDMA tuning is really hard because our MWDMA and PIO | 407 | * MWDMA tuning is really hard because our MWDMA and PIO |
406 | * timings are kept in the same place. We can switch in the | 408 | * timings are kept in the same place. We can switch in the |