diff options
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 9f6c119c2d1b..212cce342272 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -1089,7 +1089,6 @@ int lbs_remove_card(struct lbs_private *priv) | |||
1089 | lbs_remove_rtap(priv); | 1089 | lbs_remove_rtap(priv); |
1090 | 1090 | ||
1091 | dev = priv->dev; | 1091 | dev = priv->dev; |
1092 | device_remove_file(&dev->dev, &dev_attr_lbs_rtap); | ||
1093 | 1092 | ||
1094 | cancel_delayed_work(&priv->scan_work); | 1093 | cancel_delayed_work(&priv->scan_work); |
1095 | cancel_delayed_work(&priv->assoc_work); | 1094 | cancel_delayed_work(&priv->assoc_work); |
@@ -1167,6 +1166,7 @@ int lbs_stop_card(struct lbs_private *priv) | |||
1167 | netif_carrier_off(priv->dev); | 1166 | netif_carrier_off(priv->dev); |
1168 | 1167 | ||
1169 | lbs_debugfs_remove_one(priv); | 1168 | lbs_debugfs_remove_one(priv); |
1169 | device_remove_file(&dev->dev, &dev_attr_lbs_rtap); | ||
1170 | 1170 | ||
1171 | /* Flush pending command nodes */ | 1171 | /* Flush pending command nodes */ |
1172 | spin_lock_irqsave(&priv->driver_lock, flags); | 1172 | spin_lock_irqsave(&priv->driver_lock, flags); |