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 951bfede8f3d80b7026b2bfba219d5c3e092f210..6c03731d7ee7aff7ce246ca4fc2a2693d945dba4 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);