/* This function should be called in the close function of the device driver.  */
void close_candev(struct net_device *dev)
/* This function should be called in the close function of the device driver.  */
void close_candev(struct net_device *dev)
{
	struct can_priv *priv = netdev_priv(dev);
	if (del_timer_sync(&priv->restart_timer))
		dev_put(dev);
	can_flush_echo_skb(dev);
}