diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-02-28 20:48:36 +0100 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-24 09:45:02 +0100 |
commit | 1dc74c291a73a6836bdbdcab81012bbafbb63224 (patch) | |
tree | 82b0536d35342f7d8b66265f7bb1ccf062bbfb54 | |
parent | f314b0416e6559eb2b44637aba3a8f6d50c52301 (diff) |
can: flexcan: flexcan_remove(): add missing netif_napi_del()
commit d96e43e8fce28cf97df576a07af9d65657a41a6f upstream.
This patch adds the missing netif_napi_del() to the flexcan_remove() function.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-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 1167ed4d2dbc..e381142d636f 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -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; |