]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide: move ide_setup_dma() call out from ->init_dma method
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 20:25:21 +0000 (22:25 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 20:25:21 +0000 (22:25 +0200)
There should be no functional changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/alim15x3.c
drivers/ide/pci/hpt366.c
drivers/ide/setup-pci.c

index fcd0222ca477180cfc33414a654b6618022502d6..fbb55fa2d0677b7041d15cbb6995c0367c3c4726 100644 (file)
@@ -734,7 +734,6 @@ static void __devinit init_dma_ali15x3 (ide_hwif_t *hwif, unsigned long dmabase)
 {
        if (!hwif->channel)
                outb(inb(dmabase + 2) & 0x60, dmabase + 2);
-       ide_setup_dma(hwif, dmabase);
 }
 
 static const struct ide_port_ops ali_port_ops = {
index 0f313f54fc2773a470e03e788bf698a4b1163766..df45098157f621ce8b0b908405d11ac2e12905ce 100644 (file)
@@ -1348,8 +1348,6 @@ static void __devinit init_dma_hpt366(ide_hwif_t *hwif, unsigned long dmabase)
                outb(dma_new, dmabase + 2);
 
        local_irq_restore(flags);
-
-       ide_setup_dma(hwif, dmabase);
 }
 
 static void __devinit hpt374_init(struct pci_dev *dev, struct pci_dev *dev2)
index 26997648bf003a913c9fa0e7b9e9623d4752c0a3..f8fc9727da0796e599604d30ac222aa25981d7cd 100644 (file)
@@ -361,11 +361,10 @@ void ide_hwif_setup_dma(ide_hwif_t *hwif, const struct ide_port_info *d)
                        }
                }
                if (dma_base) {
-                       if (d->init_dma) {
+                       if (d->init_dma)
                                d->init_dma(hwif, dma_base);
-                       } else {
-                               ide_setup_dma(hwif, dma_base);
-                       }
+
+                       ide_setup_dma(hwif, dma_base);
                } else {
                        printk(KERN_INFO "%s: %s Bus-Master DMA disabled "
                                "(BIOS)\n", hwif->name, d->name);