Skip to content

Commit

Permalink
can: flexcan: flexcan_remove(): add missing netif_napi_del()
Browse files Browse the repository at this point in the history
This patch adds the missing netif_napi_del() to the flexcan_remove() function.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Mar 3, 2014
1 parent b1aa1c7 commit d96e43e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/can/flexcan.c
Original file line number Diff line number Diff line change
@@ -1184,9 +1184,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;

0 comments on commit d96e43e

Please sign in to comment.