Skip to contentSkip to conversation

fix cyclades compile with !PCI

PATCH New Adrian Bunk 1 participant 1 message May 12, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix cyclades compile with !PCI

I got the following compile error in 2.6.6-mm1 (but not specific to -mm) with CONFIG_PCI=n:

<-- snip -->

...
CC drivers/char/cyclades.o
drivers/char/cyclades.c: In function `cy_cleanup_module':
drivers/char/cyclades.c:5638: warning: implicit declaration of function `pci_release_regions'
...
LD .tmp_vmlinux1
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

The patch below fixes this issue.

Please apply
Adrian

drivers/char/cyclades.c renamed from drivers/char/cyclades.c.old +2 -0
@@ -5634,8 +5634,10 @@
 #endif /* CONFIG_CYZ_INTR */
 	    )
 		free_irq(cy_card[i].irq, &cy_card[i]);
+#ifdef CONFIG_PCI
 		if (cy_card[i].pdev)
 			pci_release_regions(cy_card[i].pdev);
+#endif
         }
     }
     if (tmp_buf) {