From f29b423834be812b736bf5e804290c3e14b1dd67 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Tue, 18 Mar 2014 19:13:59 +0100 Subject: 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 --- drivers/net/can/c_can/c_can.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/net') 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); void free_c_can_dev(struct net_device *dev) { + struct c_can_priv *priv = netdev_priv(dev); + + netif_napi_del(&priv->napi); free_candev(dev); } EXPORT_SYMBOL_GPL(free_c_can_dev); -- cgit v1.2.3-58-ga151