From: Mike Frysinger Date: Fri, 5 Jun 2009 14:37:20 +0000 (+0000) Subject: netdev: smsc911x: add missing __devexit_p() usage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df911e2dc4c59e259b65c502fe0679ade309b575;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c index 3cff84078a9..b60639bd181 100644 --- a/drivers/net/smsc911x.c +++ b/drivers/net/smsc911x.c @@ -2155,7 +2155,7 @@ static int smsc911x_resume(struct platform_device *pdev) static struct platform_driver smsc911x_driver = { .probe = smsc911x_drv_probe, - .remove = smsc911x_drv_remove, + .remove = __devexit_p(smsc911x_drv_remove), .driver = { .name = SMSC_CHIPNAME, },