[PATCH] small binutil patch, kernel 2.4.17-rc1

From: John Peter Tapsell (tapselj0@cs.man.ac.uk)
Date: Sun Dec 16 2001 - 01:41:58 EST


Some more fixes with the problem exposed with the new binutils.
It is a simple replace of __exit with __devexit in 3 files.

[cc me please]
john.tapsell@cs.man.ac.uk

-----------------------------

diff -urN linux/drivers/char/synclink.c linux_new/drivers/char/synclink.c
--- linux/drivers/char/synclink.c Fri Sep 14 22:39:59 2001
+++ linux_new/drivers/char/synclink.c Sat Dec 15 06:02:42 2001
@@ -926,7 +926,7 @@
 
 static int __init synclink_init_one (struct pci_dev *dev,
                                      const struct pci_device_id *ent);
-static void __exit synclink_remove_one (struct pci_dev *dev);
+static void __devexit synclink_remove_one (struct pci_dev *dev);
 
 static struct pci_device_id synclink_pci_tbl[] __devinitdata = {
         { PCI_VENDOR_ID_MICROGATE, PCI_DEVICE_ID_MICROGATE_USC, PCI_ANY_ID,
PCI_ANY_ID, },
@@ -940,7 +940,7 @@
         name: "synclink",
         id_table: synclink_pci_tbl,
         probe: synclink_init_one,
- remove: synclink_remove_one,
+ remove: __devexit_p(synclink_remove_one),
 };
 
 static struct tty_driver serial_driver, callout_driver;
@@ -8219,7 +8219,7 @@
         return 0;
 }
 
-static void __exit synclink_remove_one (struct pci_dev *dev)
+static void __devexit synclink_remove_one (struct pci_dev *dev)
 {
 }
 
diff -urN linux/drivers/char/wdt_pci.c linux_new/drivers/char/wdt_pci.c
--- linux/drivers/char/wdt_pci.c Fri Sep 7 17:28:38 2001
+++ linux_new/drivers/char/wdt_pci.c Sat Dec 15 06:01:51 2001
@@ -560,7 +560,7 @@
 }
 
 
-static void __exit wdtpci_remove_one (struct pci_dev *pdev)
+static void __devexit wdtpci_remove_one (struct pci_dev *pdev)
 {
         /* here we assume only one device will ever have
          * been picked up and registered by probe function */
@@ -585,7 +585,7 @@
         name: "wdt-pci",
         id_table: wdtpci_pci_tbl,
         probe: wdtpci_init_one,
- remove: wdtpci_remove_one,
+ remove: __devexit_p(wdtpci_remove_one),
 };
 
 
diff -urN linux/drivers/sound/via82cxxx_audio.c
linux_new/drivers/sound/via82cxxx_audio.c
--- linux/drivers/sound/via82cxxx_audio.c Sat Dec 15 06:10:01 2001
+++ linux_new/drivers/sound/via82cxxx_audio.c Sat Dec 15 05:58:07 2001
@@ -365,7 +365,7 @@
         name: VIA_MODULE_NAME,
         id_table: via_pci_tbl,
         probe: via_init_one,
- remove: via_remove_one,
+ remove: __devexit_p(via_remove_one),
 };
 
 
@@ -3271,7 +3271,7 @@
 }
 
 
-static void __exit via_remove_one (struct pci_dev *pdev)
+static void __devexit via_remove_one (struct pci_dev *pdev)
 {
         struct via_info *card;
 
-
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 : Sun Dec 23 2001 - 21:00:10 EST