ide: make ide_hwif_t.ide_dma_host_on void (v2)
* since ide_hwif_t.ide_dma_host_on is called either when drive->using_dma == 1 or when return value is discarded make it void, also drop "ide_" prefix * make __ide_dma_host_on() void and drop "__" prefix v2: * while at it rename atiixp_ide_dma_host_on() to atiixp_dma_host_on() and sgiioc4_ide_dma_host_on() to sgiioc4_dma_host_on(). [ Noticed by Sergei Shtylyov <sshtylyov@ru.mvista.com>. ] Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@ -101,7 +101,7 @@ static u8 atiixp_dma_2_pio(u8 xfer_rate) {
|
||||
}
|
||||
}
|
||||
|
||||
static int atiixp_ide_dma_host_on(ide_drive_t *drive)
|
||||
static void atiixp_dma_host_on(ide_drive_t *drive)
|
||||
{
|
||||
struct pci_dev *dev = drive->hwif->pci_dev;
|
||||
unsigned long flags;
|
||||
@ -118,7 +118,7 @@ static int atiixp_ide_dma_host_on(ide_drive_t *drive)
|
||||
|
||||
spin_unlock_irqrestore(&atiixp_lock, flags);
|
||||
|
||||
return __ide_dma_host_on(drive);
|
||||
ide_dma_host_on(drive);
|
||||
}
|
||||
|
||||
static void atiixp_dma_host_off(ide_drive_t *drive)
|
||||
@ -305,7 +305,7 @@ static void __devinit init_hwif_atiixp(ide_hwif_t *hwif)
|
||||
else
|
||||
hwif->udma_four = 0;
|
||||
|
||||
hwif->ide_dma_host_on = &atiixp_ide_dma_host_on;
|
||||
hwif->dma_host_on = &atiixp_dma_host_on;
|
||||
hwif->dma_host_off = &atiixp_dma_host_off;
|
||||
hwif->ide_dma_check = &atiixp_dma_check;
|
||||
if (!noautodma)
|
||||
|
Reference in New Issue
Block a user