diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-03-18 14:13:59 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-04-01 05:54:56 -0400 |
commit | f29b423834be812b736bf5e804290c3e14b1dd67 (patch) | |
tree | f2bfc6cd0009594d05f5e711d04db941d0ae948e /drivers/net/can | |
parent | 5fb7639dee74496107f269a987933e2f0465692c (diff) |
can: c_can: free_c_can_dev(): add missing netif_napi_del()
This patch adds the missing netif_napi_del() to the free_c_can_dev() function.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/c_can/c_can.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c index 951bfede8f3d..6c03731d7ee7 100644 --- a/drivers/net/can/c_can/c_can.c +++ b/drivers/net/can/c_can/c_can.c | |||
@@ -1269,6 +1269,9 @@ EXPORT_SYMBOL_GPL(c_can_power_up); | |||
1269 | 1269 | ||
1270 | void free_c_can_dev(struct net_device *dev) | 1270 | void free_c_can_dev(struct net_device *dev) |
1271 | { | 1271 | { |
1272 | struct c_can_priv *priv = netdev_priv(dev); | ||
1273 | |||
1274 | netif_napi_del(&priv->napi); | ||
1272 | free_candev(dev); | 1275 | free_candev(dev); |
1273 | } | 1276 | } |
1274 | EXPORT_SYMBOL_GPL(free_c_can_dev); | 1277 | EXPORT_SYMBOL_GPL(free_c_can_dev); |