From 22f4d9f1c0a1cf3766a99a873d8dacc921c4cbfa Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 29 Dec 2003 05:47:35 -0800 Subject: [PATCH] [PATCH] Can't disable IDE DMA From: Peter Chubb If you try to disable IDE DMA from Kconfig, you'll end up with an undefined symbol, ide_hwif_setup_dma(). The attached rather ugly patch fixes the problem by defining a dummy function. --- drivers/ide/setup-pci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index a1bf1ae9bfd5f..e0ed9c0493f9f 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c @@ -474,6 +474,11 @@ fixup_address: * state */ +#ifndef CONFIG_BLK_DEV_IDEDMA_PCI +static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif) +{ +} +#else static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif) { u16 pcicmd; @@ -516,6 +521,7 @@ static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwi } } } +#endif /* CONFIG_BLK_DEV_IDEDMA_PCI*/ /** * ide_setup_pci_controller - set up IDE PCI -- 2.53.0