Re: [PATCH] kill dummy init_dma_* from drivers/ide/pci/

From: Bartlomiej Zolnierkiewicz
Date: Fri Oct 03 2003 - 18:59:19 EST



[IDE] opti621: kill dummy init_dma_opti621()

drivers/ide/pci/opti621.c | 5 -----
drivers/ide/pci/opti621.h | 3 ---
2 files changed, 8 deletions(-)

diff -puN drivers/ide/pci/opti621.c~ide-opti621-init_dma drivers/ide/pci/opti621.c
--- linux-2.6.0-test6-bk2/drivers/ide/pci/opti621.c~ide-opti621-init_dma 2003-10-04 01:02:44.897329608 +0200
+++ linux-2.6.0-test6-bk2-root/drivers/ide/pci/opti621.c 2003-10-04 01:02:44.903328696 +0200
@@ -348,11 +348,6 @@ static void __init init_hwif_opti621 (id
hwif->drives[1].autodma = hwif->autodma;
}

-static void __init init_dma_opti621 (ide_hwif_t *hwif, unsigned long dmabase)
-{
- ide_setup_dma(hwif, dmabase, 8);
-}
-
extern void ide_setup_pci_device(struct pci_dev *, ide_pci_device_t *);

static void __init init_setup_opti621 (struct pci_dev *dev, ide_pci_device_t *d)
diff -puN drivers/ide/pci/opti621.h~ide-opti621-init_dma drivers/ide/pci/opti621.h
--- linux-2.6.0-test6-bk2/drivers/ide/pci/opti621.h~ide-opti621-init_dma 2003-10-04 01:02:44.900329152 +0200
+++ linux-2.6.0-test6-bk2-root/drivers/ide/pci/opti621.h 2003-10-04 01:03:31.271279696 +0200
@@ -7,7 +7,6 @@

static void init_setup_opti621(struct pci_dev *, ide_pci_device_t *);
static void init_hwif_opti621(ide_hwif_t *);
-static void init_dma_opti621(ide_hwif_t *, unsigned long);

static ide_pci_device_t opti621_chipsets[] __devinitdata = {
{ /* 0 */
@@ -18,7 +17,6 @@ static ide_pci_device_t opti621_chipsets
.init_chipset = NULL,
.init_iops = NULL,
.init_hwif = init_hwif_opti621,
- .init_dma = init_dma_opti621,
.channels = 2,
.autodma = AUTODMA,
.enablebits = {{0x45,0x80,0x00}, {0x40,0x08,0x00}},
@@ -32,7 +30,6 @@ static ide_pci_device_t opti621_chipsets
.init_chipset = NULL,
.init_iops = NULL,
.init_hwif = init_hwif_opti621,
- .init_dma = init_dma_opti621,
.channels = 2,
.autodma = AUTODMA,
.enablebits = {{0x45,0x80,0x00}, {0x40,0x08,0x00}},

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/