Forward-port of 2.4.21-ac4 patch by Wilfried Weissmann.
ide_get_or_set_dma_base() may be called via ide_setup_pci_device()
when a PCI controller module is loaded. However, it is defined with __init
and the function is called when its memory is already deallocated.
* is already in DMA mode we check and enforce IDE simplex rules.
*/
-static unsigned long __init ide_get_or_set_dma_base (ide_hwif_t *hwif)
+static unsigned long ide_get_or_set_dma_base (ide_hwif_t *hwif)
{
unsigned long dma_base = 0;
struct pci_dev *dev = hwif->pci_dev;