mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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>
This commit is contained in:
parent
1993f46739
commit
df911e2dc4
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue