lkml.org 
[lkml]   [2004]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] 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

--- linux-2.6.6-mm1-full/drivers/char/cyclades.c.old 2004-05-13 01:18:09.000000000 +0200
+++ linux-2.6.6-mm1-full/drivers/char/cyclades.c 2004-05-13 01:18:34.000000000 +0200
@@ -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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.117 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site