can: flexcan: flexcan_remove(): add missing netif_napi_del()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 28 Feb 2014 19:48:36 +0000 (20:48 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 3 Mar 2014 13:29:51 +0000 (14:29 +0100)
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>
drivers/net/can/flexcan.c

index 330b5b957a396b739739ea13e06d560068c831da..dff4fa472c3a60246c06ff5176bc02d8aca44288 100644 (file)
@@ -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;