diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-01-06 22:38:38 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-01-06 22:38:38 +0000 |
commit | 64c35d0942f44d82bd1ae27f91f1dee76e1944f0 (patch) | |
tree | 87690191d32fc9a9fc9524c84ec58e5a50f17d4a /target/linux/brcm47xx/patches-2.6.23/410-aec62xx_pci_enable.patch | |
parent | c2b878a3841b7ec8d1fad24d95b7c787b7e9f256 (diff) | |
download | mtk-20170518-64c35d0942f44d82bd1ae27f91f1dee76e1944f0.zip mtk-20170518-64c35d0942f44d82bd1ae27f91f1dee76e1944f0.tar.gz mtk-20170518-64c35d0942f44d82bd1ae27f91f1dee76e1944f0.tar.bz2 |
nuke old 2.6.23 code for brcm47xx
SVN-Revision: 13910
Diffstat (limited to 'target/linux/brcm47xx/patches-2.6.23/410-aec62xx_pci_enable.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-2.6.23/410-aec62xx_pci_enable.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.23/410-aec62xx_pci_enable.patch b/target/linux/brcm47xx/patches-2.6.23/410-aec62xx_pci_enable.patch deleted file mode 100644 index 4e57ecb..0000000 --- a/target/linux/brcm47xx/patches-2.6.23/410-aec62xx_pci_enable.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/drivers/ide/pci/aec62xx.c -+++ b/drivers/ide/pci/aec62xx.c -@@ -248,7 +248,14 @@ - - static int __devinit init_setup_aec6x80(struct pci_dev *dev, ide_pci_device_t *d) - { -- unsigned long dma_base = pci_resource_start(dev, 4); -+ unsigned long dma_base; -+ int err; -+ -+ err = pci_enable_device(dev); -+ if (err) -+ return err; -+ -+ dma_base = pci_resource_start(dev, 4); - - if (inb(dma_base + 2) & 0x10) { - d->name = (dev->device == PCI_DEVICE_ID_ARTOP_ATP865R) ? -@@ -256,7 +263,11 @@ - d->udma_mask = 0x7f; /* udma0-6 */ - } - -- return ide_setup_pci_device(dev, d); -+ err = ide_setup_pci_device(dev, d); -+ if(err) -+ pci_disable_device(dev); -+ -+ return err; - } - - static ide_pci_device_t aec62xx_chipsets[] __devinitdata = { |