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>
This commit is contained in:
parent
5fb7639dee
commit
f29b423834
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue