Commit 1dc74c29 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by Jiri Slaby

can: flexcan: flexcan_remove(): add missing netif_napi_del()

commit d96e43e8 upstream.

This patch adds the missing netif_napi_del() to the flexcan_remove() function.
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent f314b041
......@@ -1143,9 +1143,10 @@ static int flexcan_probe(struct platform_device *pdev)
static int flexcan_remove(struct platform_device *pdev)
{
struct net_device *dev = platform_get_drvdata(pdev);
struct flexcan_priv *priv = netdev_priv(dev);
unregister_flexcandev(dev);
netif_napi_del(&priv->napi);
free_candev(dev);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment