diff options
author | 2014-02-28 20:48:36 +0100 | |
---|---|---|
committer | 2014-03-03 14:29:51 +0100 | |
commit | d96e43e8fce28cf97df576a07af9d65657a41a6f (patch) | |
tree | f432de0a47f8ecb69a15421593ea7a5d6f27d841 /drivers/net/can | |
parent | can: flexcan: fix transition from and to freeze mode in chip_{,un}freeze (diff) | |
download | linux-d96e43e8fce28cf97df576a07af9d65657a41a6f.tar.gz linux-d96e43e8fce28cf97df576a07af9d65657a41a6f.tar.bz2 linux-d96e43e8fce28cf97df576a07af9d65657a41a6f.zip |
can: flexcan: flexcan_remove(): add missing netif_napi_del()
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>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/flexcan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index 330b5b957a39..dff4fa472c3a 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -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; |