ide: make void and rename ide_dma_lostirq() method
Since ide_dma_lostirq() method's result is discarded, make it return 'void'. While at it, rename the method to dma_lost_irq(), drop the '__' prefix from the default method's name, and do some cleanups in this method driver-wise: - in aec62xx.c, rename the method in accordance with other drivers, and get rid of unnecessary variables there; - in pdc202xx_old.c, define/use 'hwif' variable; - in sgiioc4.c, rearrange the code to call the resetproc() method directly. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
这个提交包含在:

提交者
Bartlomiej Zolnierkiewicz

父节点
b740d8846e
当前提交
841d2a9bf1
@@ -456,10 +456,9 @@ static void auide_dma_off_quietly(ide_drive_t *drive)
|
||||
drive->using_dma = 0;
|
||||
}
|
||||
|
||||
static int auide_dma_lostirq(ide_drive_t *drive)
|
||||
static void auide_dma_lost_irq(ide_drive_t *drive)
|
||||
{
|
||||
printk(KERN_ERR "%s: IRQ lost\n", drive->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void auide_ddma_tx_callback(int irq, void *param)
|
||||
@@ -731,7 +730,7 @@ static int au_ide_probe(struct device *dev)
|
||||
hwif->ide_dma_test_irq = &auide_dma_test_irq;
|
||||
hwif->dma_host_off = &auide_dma_host_off;
|
||||
hwif->dma_host_on = &auide_dma_host_on;
|
||||
hwif->ide_dma_lostirq = &auide_dma_lostirq;
|
||||
hwif->dma_lost_irq = &auide_dma_lost_irq;
|
||||
hwif->ide_dma_on = &auide_dma_on;
|
||||
|
||||
hwif->autodma = 1;
|
||||
|
在新工单中引用
屏蔽一个用户