Skip to contentSkip to conversation

staging: Add missing __devexit_p()

PATCH New Jean Delvare 1 participant 1 message Jun 4, 2009 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: Add missing __devexit_p()

The remove function uses __devexit, so the .remove assignment needs __devexit_p() to fix a build error with hotplug disabled.

Cc Greg Kroah-Hartman <[email protected]>

---
Inspired from recent similar fixes from Mike Frysinger.

 drivers/staging/altpciechdma/altpciechdma.c |    2 +-
 drivers/staging/slicoss/slicoss.c           |    2 +-
 drivers/staging/sxg/sxg.c                   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/altpciechdma/altpciechdma.c +1 -1
@@ -1151,7 +1151,7 @@ static struct pci_driver pci_driver = {
 	.name = DRV_NAME,
 	.id_table = ids,
 	.probe = probe,
-	.remove = remove,
+	.remove = __devexit_p(remove),
 	/* resume, suspend are optional */
 };
 
drivers/staging/slicoss/slicoss.c +1 -1
@@ -4049,7 +4049,7 @@ static struct pci_driver slic_driver = {
 	.name = DRV_NAME,
 	.id_table = slic_pci_tbl,
 	.probe = slic_entry_probe,
-	.remove = slic_entry_remove,
+	.remove = __devexit_p(slic_entry_remove),
 };
 
 static int __init slic_module_init(void)
drivers/staging/sxg/sxg.c +1 -1
@@ -4516,7 +4516,7 @@ static struct pci_driver sxg_driver = {
 	.name = sxg_driver_name,
 	.id_table = sxg_pci_tbl,
 	.probe = sxg_entry_probe,
-	.remove = sxg_entry_remove,
+	.remove = __devexit_p(sxg_entry_remove),
 #if SXG_POWER_MANAGEMENT_ENABLED
 	.suspend = sxgpm_suspend,
 	.resume = sxgpm_resume,
Signature · 1 line
Jean Delvare