Skip to contentSkip to conversation

de2104x.c missing __devexit_p in 2.5.43

PATCH In review Andrey Panin 2 participants 3 messages Oct 17, 2002 – Oct 18, 2002 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 de2104x.c missing __devexit_p in 2.5.43

IMHO subject and patch are self explainning :)

Signature · 2 lines
Andrey Panin            | Embedded systems software developer
[email protected]        | PGP key: wwwkeys.eu.pgp.net
drivers/net/tulip/de2104x.c +1 -1
diff -urN -X /usr/share/dontdiff linux-vanilla/drivers/net/tulip/de2104x.c linux/drivers/net/tulip/de2104x.c
@@ -2216,7 +2216,7 @@
 	.name		= DRV_NAME,
 	.id_table	= de_pci_tbl,
 	.probe		= de_init_one,
-	.remove		= de_remove_one,
+	.remove		= __devexit_p(de_remove_one),
 #ifdef CONFIG_PM
 	.suspend	= de_suspend,
 	.resume		= de_resume,
#1 lore raw

drivers/net/tulip/de2104x.c line 2222

Quoted 12 lines · Andrey Panin

diff -urN -X /usr/share/dontdiff linux-vanilla/drivers/net/tulip/de2104x.c linux/drivers/net/tulip/de2104x.c

drivers/net/tulip/de2104x.c +1 -1
@@ -2216,7 +2216,7 @@
 	.name		= DRV_NAME,
 	.id_table	= de_pci_tbl,
 	.probe		= de_init_one,
-	.remove		= de_remove_one,
+	.remove		= __devexit_p(de_remove_one),
 #ifdef CONFIG_PM
 	.suspend	= de_suspend,
 	.resume		= de_resume,

alas, it is incorrect, as no one hotplugs this hardware.

Jeff

#2 lore raw
Quoted 17 lines · Jeff Garzik

drivers/net/tulip/de2104x.c line 2222

Quoted 13 lines · Andrey Panin

diff -urN -X /usr/share/dontdiff linux-vanilla/drivers/net/tulip/de2104xc linux/drivers/net/tulip/de2104x.c

drivers/net/tulip/de2104x.c +1 -1
@@ -2216,7 +2216,7 @@
 	.name		= DRV_NAME,
 	.id_table	= de_pci_tbl,
 	.probe		= de_init_one,
-	.remove		= de_remove_one,
+	.remove		= __devexit_p(de_remove_one),
 #ifdef CONFIG_PM
 	.suspend	= de_suspend,
 	.resume		= de_resume,

alas, it is incorrect, as no one hotplugs this hardware.

This patch is not about hotplugging, absence of __devexi_p() makes impossible to link this driver in kernel.

Signature · 2 lines
Andrey Panin            | Embedded systems software developer
[email protected]        | PGP key: wwwkeys.eu.pgp.net