[PATCH] Tulip driver fails to link (2.5.48)

From: Peter Chubb (peter@chubb.wattle.id.au)
Date: Mon Nov 18 2002 - 16:46:42 EST


Hi,
        In the tulip driver, the .remove entry of struct pci_driveris
declared __devexit_p but the function is declared __exit. This
causes a relocation error when building as a built-in (not a module),
when CONFIG_HOTPLUG is defined.

===== drivers/net/tulip/de2104x.c 1.12 vs edited =====
--- 1.12/drivers/net/tulip/de2104x.c Wed Nov 6 05:19:30 2002
+++ edited/drivers/net/tulip/de2104x.c Mon Nov 18 21:14:47 2002
@@ -2137,7 +2137,7 @@
        return rc;
 }
 
-static void __exit de_remove_one (struct pci_dev *pdev)
+static void __devexit de_remove_one (struct pci_dev *pdev)
 {
        struct net_device *dev = pci_get_drvdata(pdev);
         struct de_private *de = dev->priv;
-
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 23 2002 - 22:00:24 EST