ide: don't display "BIOS" settings in ide_setup_dma()
[deliverable/linux.git] / drivers / ide / ide-dma.c
index 986ec465cb77bd08f373cd4270ca987e1e133297..1933254660a1df96da7332f467887471cc2d3b22 100644 (file)
@@ -542,7 +542,7 @@ static int __ide_dma_test_irq(ide_drive_t *drive)
                return 1;
        if (!drive->waiting_for_dma)
                printk(KERN_WARNING "%s: (%s) called while not waiting\n",
-                       drive->name, __FUNCTION__);
+                       drive->name, __func__);
        return 0;
 }
 #else
@@ -833,43 +833,20 @@ static int ide_allocate_dma_engine(ide_hwif_t *hwif)
                return 0;
 
        printk(KERN_ERR "%s: -- Error, unable to allocate DMA table.\n",
-              hwif->cds->name);
+                       hwif->name);
 
        return 1;
 }
 
-static int ide_mapped_mmio_dma(ide_hwif_t *hwif, unsigned long base)
-{
-       printk(KERN_INFO "    %s: MMIO-DMA ", hwif->name);
-
-       return 0;
-}
-
-static int ide_iomio_dma(ide_hwif_t *hwif, unsigned long base)
-{
-       printk(KERN_INFO "    %s: BM-DMA at 0x%04lx-0x%04lx",
-              hwif->name, base, base + 7);
-
-       if (hwif->cds->extra)
-               hwif->extra_base = base + (hwif->channel ? 8 : 16);
-
-       return 0;
-}
-
-static int ide_dma_iobase(ide_hwif_t *hwif, unsigned long base)
-{
-       if (hwif->mmio)
-               return ide_mapped_mmio_dma(hwif, base);
-
-       return ide_iomio_dma(hwif, base);
-}
-
 void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
 {
-       u8 dma_stat;
+       if (hwif->mmio)
+               printk(KERN_INFO "    %s: MMIO-DMA\n", hwif->name);
+       else
+               printk(KERN_INFO "    %s: BM-DMA at 0x%04lx-0x%04lx\n",
+                                hwif->name, base, base + 7);
 
-       if (ide_dma_iobase(hwif, base))
-               return;
+       hwif->extra_base = base + (hwif->channel ? 8 : 16);
 
        if (ide_allocate_dma_engine(hwif)) {
                ide_release_dma_engine(hwif);
@@ -905,11 +882,6 @@ void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
                hwif->dma_timeout = &ide_dma_timeout;
        if (!hwif->dma_lost_irq)
                hwif->dma_lost_irq = &ide_dma_lost_irq;
-
-       dma_stat = hwif->INB(hwif->dma_status);
-       printk(KERN_CONT ", BIOS settings: %s:%s, %s:%s\n",
-              hwif->drives[0].name, (dma_stat & 0x20) ? "DMA" : "PIO",
-              hwif->drives[1].name, (dma_stat & 0x40) ? "DMA" : "PIO");
 }
 
 EXPORT_SYMBOL_GPL(ide_setup_dma);
This page took 0.024116 seconds and 5 git commands to generate.