lkml.org 
[lkml]   [2003]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    SubjectRe: [PATCH] kill dummy init_dma_* from drivers/ide/pci/
    Date

    [IDE] generic: kill dummy init_dma_generic()

    drivers/ide/pci/generic.c | 5 -----
    drivers/ide/pci/generic.h | 12 ------------
    2 files changed, 17 deletions(-)

    diff -puN drivers/ide/pci/generic.c~ide-generic-init_dma drivers/ide/pci/generic.c
    --- linux-2.6.0-test6-bk2/drivers/ide/pci/generic.c~ide-generic-init_dma 2003-10-04 01:00:02.388034776 +0200
    +++ linux-2.6.0-test6-bk2-root/drivers/ide/pci/generic.c 2003-10-04 01:00:02.394033864 +0200
    @@ -72,11 +72,6 @@ static void __init init_hwif_generic (id
    hwif->drives[1].autodma = hwif->autodma;
    }

    -static void init_dma_generic (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 *);

    #if 0
    diff -puN drivers/ide/pci/generic.h~ide-generic-init_dma drivers/ide/pci/generic.h
    --- linux-2.6.0-test6-bk2/drivers/ide/pci/generic.h~ide-generic-init_dma 2003-10-04 01:00:02.391034320 +0200
    +++ linux-2.6.0-test6-bk2-root/drivers/ide/pci/generic.h 2003-10-04 01:00:02.395033712 +0200
    @@ -7,7 +7,6 @@

    static unsigned int init_chipset_generic(struct pci_dev *, const char *);
    static void init_hwif_generic(ide_hwif_t *);
    -static void init_dma_generic(ide_hwif_t *, unsigned long);

    static ide_pci_device_t generic_chipsets[] __devinitdata = {
    { /* 0 */
    @@ -17,7 +16,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = AUTODMA,
    .enablebits = {{0x43,0x08,0x08}, {0x47,0x08,0x08}},
    @@ -30,7 +28,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = AUTODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -43,7 +40,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = AUTODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -56,7 +52,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = NODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -69,7 +64,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = NODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -82,7 +76,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = NODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -95,7 +88,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = AUTODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -108,7 +100,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = NOAUTODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -121,7 +112,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = NOAUTODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -134,7 +124,6 @@ static ide_pci_device_t generic_chipsets
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .channels = 2,
    .autodma = AUTODMA,
    .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
    @@ -157,7 +146,6 @@ static ide_pci_device_t unknown_chipset[
    .init_chipset = init_chipset_generic,
    .init_iops = NULL,
    .init_hwif = init_hwif_generic,
    - .init_dma = init_dma_generic,
    .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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:49    [W:0.024 / U:3.440 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site