can: c_can: free_c_can_dev(): add missing netif_napi_del()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 18 Mar 2014 18:13:59 +0000 (19:13 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 1 Apr 2014 09:54:56 +0000 (11:54 +0200)
This patch adds the missing netif_napi_del() to the free_c_can_dev() function.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c

index 951bfed..6c03731 100644 (file)
@@ -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);