提交 10bca0d5 编写于 作者: D David Woodhouse 提交者: David S. Miller

libertas: move removal of lbs_rtap file to lbs_stop_card()

This prevents us from trying to remove it when it didn't exist, in the
error case.
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 6bc822b5
...@@ -1089,7 +1089,6 @@ int lbs_remove_card(struct lbs_private *priv) ...@@ -1089,7 +1089,6 @@ int lbs_remove_card(struct lbs_private *priv)
lbs_remove_rtap(priv); lbs_remove_rtap(priv);
dev = priv->dev; dev = priv->dev;
device_remove_file(&dev->dev, &dev_attr_lbs_rtap);
cancel_delayed_work(&priv->scan_work); cancel_delayed_work(&priv->scan_work);
cancel_delayed_work(&priv->assoc_work); cancel_delayed_work(&priv->assoc_work);
...@@ -1167,6 +1166,7 @@ int lbs_stop_card(struct lbs_private *priv) ...@@ -1167,6 +1166,7 @@ int lbs_stop_card(struct lbs_private *priv)
netif_carrier_off(priv->dev); netif_carrier_off(priv->dev);
lbs_debugfs_remove_one(priv); lbs_debugfs_remove_one(priv);
device_remove_file(&dev->dev, &dev_attr_lbs_rtap);
/* Flush pending command nodes */ /* Flush pending command nodes */
spin_lock_irqsave(&priv->driver_lock, flags); spin_lock_irqsave(&priv->driver_lock, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册