[PATCH][2.5] pci_siig* interdependence

From: Zwane Mwaikambo (zwane@holomorphy.com)
Date: Thu Nov 28 2002 - 03:39:08 EST


Hi Russell,
This patch is to fix a compilation problem (functions are shared with
parport_serial) as well as fix a potential oops (parport_serial as module
would try and reference the freed memory)

Russell am i missing something?

Index: linux-2.5.50/drivers/serial/8250_pci.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.50/drivers/serial/8250_pci.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 8250_pci.c
--- linux-2.5.50/drivers/serial/8250_pci.c 28 Nov 2002 01:34:30 -0000 1.1.1.1
+++ linux-2.5.50/drivers/serial/8250_pci.c 28 Nov 2002 05:08:38 -0000
@@ -267,7 +267,7 @@
 #define PCI_DEVICE_ID_SIIG_1S_10x (PCI_DEVICE_ID_SIIG_1S_10x_550 & 0xfffc)
 #define PCI_DEVICE_ID_SIIG_2S_10x (PCI_DEVICE_ID_SIIG_2S_10x_550 & 0xfff8)

-static int __devinit pci_siig10x_fn(struct pci_dev *dev, int enable)
+int pci_siig10x_fn(struct pci_dev *dev, int enable)
 {
         u16 data, *p;

@@ -298,7 +298,7 @@
 #define PCI_DEVICE_ID_SIIG_2S_20x (PCI_DEVICE_ID_SIIG_2S_20x_550 & 0xfffc)
 #define PCI_DEVICE_ID_SIIG_2S1P_20x (PCI_DEVICE_ID_SIIG_2S1P_20x_550 & 0xfffc)

-static int __devinit pci_siig20x_fn(struct pci_dev *dev, int enable)
+int pci_siig20x_fn(struct pci_dev *dev, int enable)
 {
         u8 data;

-- 
function.linuxpower.ca
-
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/



This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:19 EST