Staging: sxg: Add missing __devexit_p()
authorJean Delvare <khali@linux-fr.org>
Thu, 4 Jun 2009 11:35:15 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:35 +0000 (11:00 -0700)
The remove function uses __devexit, so the .remove assignment needs
__devexit_p() to fix a build error with hotplug disabled.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sxg/sxg.c

index f7306da7d3b6825ba837aa79720786770ec6a309..3a0dac962e4d51df19fdcd98ee415debfb110dd8 100644 (file)
@@ -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,