Commit b618744f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix cyclades compile with !PCI

From: Adrian Bunk <bunk@fs.tum.de>

drivers/char/cyclades.c: In function `cy_cleanup_module':
drivers/char/cyclades.c:5638: warning: implicit declaration of function `pci_release_regions'
parent 42f0e8f2
...@@ -5634,8 +5634,10 @@ cy_cleanup_module(void) ...@@ -5634,8 +5634,10 @@ cy_cleanup_module(void)
#endif /* CONFIG_CYZ_INTR */ #endif /* CONFIG_CYZ_INTR */
) )
free_irq(cy_card[i].irq, &cy_card[i]); free_irq(cy_card[i].irq, &cy_card[i]);
#ifdef CONFIG_PCI
if (cy_card[i].pdev) if (cy_card[i].pdev)
pci_release_regions(cy_card[i].pdev); pci_release_regions(cy_card[i].pdev);
#endif
} }
} }
if (tmp_buf) { if (tmp_buf) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment