aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-05 10:37:20 -0400
committerDavid S. Miller <davem@davemloft.net>2009-06-08 03:09:44 -0400
commitdf911e2dc4c59e259b65c502fe0679ade309b575 (patch)
tree56f421382eb957fee121a225f413f6f48e9a198a /drivers
parent1993f46739a9600ecdbbaa1ce56d25f6fdc44472 (diff)
netdev: smsc911x: add missing __devexit_p() usage
The smsc911x_drv_remove() function is declared with __devexit, so the assignment to the driver structure needs __devexit_p() wrappings to prevent build failure when hotplug is disabled. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/smsc911x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c
index 3cff84078a9e..b60639bd181b 100644
--- a/drivers/net/smsc911x.c
+++ b/drivers/net/smsc911x.c
@@ -2155,7 +2155,7 @@ static int smsc911x_resume(struct platform_device *pdev)
2155 2155
2156static struct platform_driver smsc911x_driver = { 2156static struct platform_driver smsc911x_driver = {
2157 .probe = smsc911x_drv_probe, 2157 .probe = smsc911x_drv_probe,
2158 .remove = smsc911x_drv_remove, 2158 .remove = __devexit_p(smsc911x_drv_remove),
2159 .driver = { 2159 .driver = {
2160 .name = SMSC_CHIPNAME, 2160 .name = SMSC_CHIPNAME,
2161 }, 2161 },