Staging: altpciechdma: 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:55 +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/altpciechdma/altpciechdma.c

index f5004d3cef634b784aa17205cb9bbc1b071cdf96..ac9728e067d45690a039606653d2b5d0ba3a03bb 100644 (file)
@@ -1143,7 +1143,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 */
 };