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>
This commit is contained in:
committed by
David S. Miller
parent
e085b3cae8
commit
8776168ca2
@ -777,14 +777,14 @@ set_timings_mdma(ide_drive_t *drive, int intf_type, u32 *timings, u32 *timings2,
|
||||
#endif
|
||||
}
|
||||
|
||||
static void pmac_ide_set_dma_mode(ide_drive_t *drive, const u8 speed)
|
||||
static void pmac_ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
|
||||
{
|
||||
ide_hwif_t *hwif = drive->hwif;
|
||||
pmac_ide_hwif_t *pmif =
|
||||
(pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent);
|
||||
int ret = 0;
|
||||
u32 *timings, *timings2, tl[2];
|
||||
u8 unit = drive->dn & 1;
|
||||
const u8 speed = drive->dma_mode;
|
||||
|
||||
timings = &pmif->timings[unit];
|
||||
timings2 = &pmif->timings[unit+2];
|
||||
|
Reference in New Issue
Block a user