diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2010-01-19 01:45:29 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-19 01:45:29 -0800 |
commit | 8776168ca2151850164af1de5565d01f7b8b2c53 (patch) | |
tree | 28a44a3a649e1ab98f89674a06cc4c135a16d243 /drivers/ide/atiixp.c | |
parent | e085b3cae85af47eb0a3eda3186bd898310fb322 (diff) | |
download | kernel_goldelico_gta04-8776168ca2151850164af1de5565d01f7b8b2c53.zip kernel_goldelico_gta04-8776168ca2151850164af1de5565d01f7b8b2c53.tar.gz kernel_goldelico_gta04-8776168ca2151850164af1de5565d01f7b8b2c53.tar.bz2 |
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/atiixp.c')
-rw-r--r-- | drivers/ide/atiixp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ide/atiixp.c b/drivers/ide/atiixp.c index b6848df..15f0ead 100644 --- a/drivers/ide/atiixp.c +++ b/drivers/ide/atiixp.c @@ -75,21 +75,22 @@ static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) /** * atiixp_set_dma_mode - set host controller for DMA mode + * @hwif: port * @drive: drive - * @speed: DMA mode * * Set a ATIIXP host controller to the desired DMA mode. This involves * programming the right timing data into the PCI configuration space. */ -static void atiixp_set_dma_mode(ide_drive_t *drive, const u8 speed) +static void atiixp_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) { - struct pci_dev *dev = to_pci_dev(drive->hwif->dev); + struct pci_dev *dev = to_pci_dev(hwif->dev); unsigned long flags; int timing_shift = (drive->dn ^ 1) * 8; u32 tmp32; u16 tmp16; u16 udma_ctl = 0; + const u8 speed = drive->dma_mode; spin_lock_irqsave(&atiixp_lock, flags); |