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

From: Bartlomiej Zolnierkiewicz
Date: Fri Oct 03 2003 - 18:47:21 EST



[IDE] siimage: kill dummy init_dma_siimage()

drivers/ide/pci/siimage.c | 14 --------------
drivers/ide/pci/siimage.h | 4 ----
2 files changed, 18 deletions(-)

diff -puN drivers/ide/pci/siimage.c~ide-siimage-init_dma drivers/ide/pci/siimage.c
--- linux-2.6.0-test6-bk2/drivers/ide/pci/siimage.c~ide-siimage-init_dma 2003-10-04 01:12:23.480371616 +0200
+++ linux-2.6.0-test6-bk2-root/drivers/ide/pci/siimage.c 2003-10-04 01:12:23.486370704 +0200
@@ -1150,20 +1150,6 @@ static void __init init_hwif_siimage (id
hwif->drives[1].autodma = hwif->autodma;
}

-/**
- * init_dma_siimage - set up IDE DMA
- * @hwif: interface
- * @dmabase: DMA base address to use
- *
- * For the SI chips this requires no special set up so we can just
- * let the IDE DMA core do the usual work.
- */
-
-static void __init init_dma_siimage (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 *);


diff -puN drivers/ide/pci/siimage.h~ide-siimage-init_dma drivers/ide/pci/siimage.h
--- linux-2.6.0-test6-bk2/drivers/ide/pci/siimage.h~ide-siimage-init_dma 2003-10-04 01:12:23.483371160 +0200
+++ linux-2.6.0-test6-bk2-root/drivers/ide/pci/siimage.h 2003-10-04 01:12:23.487370552 +0200
@@ -44,7 +44,6 @@ static ide_pci_host_proc_t siimage_procs
static unsigned int init_chipset_siimage(struct pci_dev *, const char *);
static void init_iops_siimage(ide_hwif_t *);
static void init_hwif_siimage(ide_hwif_t *);
-static void init_dma_siimage(ide_hwif_t *, unsigned long);

static ide_pci_device_t siimage_chipsets[] __devinitdata = {
{ /* 0 */
@@ -54,7 +53,6 @@ static ide_pci_device_t siimage_chipsets
.init_chipset = init_chipset_siimage,
.init_iops = init_iops_siimage,
.init_hwif = init_hwif_siimage,
- .init_dma = init_dma_siimage,
.channels = 2,
.autodma = AUTODMA,
.enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
@@ -67,7 +65,6 @@ static ide_pci_device_t siimage_chipsets
.init_chipset = init_chipset_siimage,
.init_iops = init_iops_siimage,
.init_hwif = init_hwif_siimage,
- .init_dma = init_dma_siimage,
.channels = 2,
.autodma = AUTODMA,
.enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
@@ -80,7 +77,6 @@ static ide_pci_device_t siimage_chipsets
.init_chipset = init_chipset_siimage,
.init_iops = init_iops_siimage,
.init_hwif = init_hwif_siimage,
- .init_dma = init_dma_siimage,
.channels = 2,
.autodma = AUTODMA,
.enablebits = {{0x00,0x00,0x00}, {0x00,0x00,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/