aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index b1c9f3383d7..223ab3a14a1 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -889,7 +889,7 @@ int lbs_suspend(struct lbs_private *priv)
889} 889}
890EXPORT_SYMBOL_GPL(lbs_suspend); 890EXPORT_SYMBOL_GPL(lbs_suspend);
891 891
892int lbs_resume(struct lbs_private *priv) 892void lbs_resume(struct lbs_private *priv)
893{ 893{
894 lbs_deb_enter(LBS_DEB_FW); 894 lbs_deb_enter(LBS_DEB_FW);
895 895
@@ -905,7 +905,6 @@ int lbs_resume(struct lbs_private *priv)
905 netif_device_attach(priv->mesh_dev); 905 netif_device_attach(priv->mesh_dev);
906 906
907 lbs_deb_leave(LBS_DEB_FW); 907 lbs_deb_leave(LBS_DEB_FW);
908 return 0;
909} 908}
910EXPORT_SYMBOL_GPL(lbs_resume); 909EXPORT_SYMBOL_GPL(lbs_resume);
911 910
@@ -1155,7 +1154,7 @@ done:
1155EXPORT_SYMBOL_GPL(lbs_add_card); 1154EXPORT_SYMBOL_GPL(lbs_add_card);
1156 1155
1157 1156
1158int lbs_remove_card(struct lbs_private *priv) 1157void lbs_remove_card(struct lbs_private *priv)
1159{ 1158{
1160 struct net_device *dev = priv->dev; 1159 struct net_device *dev = priv->dev;
1161 union iwreq_data wrqu; 1160 union iwreq_data wrqu;
@@ -1190,7 +1189,6 @@ int lbs_remove_card(struct lbs_private *priv)
1190 free_netdev(dev); 1189 free_netdev(dev);
1191 1190
1192 lbs_deb_leave(LBS_DEB_MAIN); 1191 lbs_deb_leave(LBS_DEB_MAIN);
1193 return 0;
1194} 1192}
1195EXPORT_SYMBOL_GPL(lbs_remove_card); 1193EXPORT_SYMBOL_GPL(lbs_remove_card);
1196 1194
@@ -1261,10 +1259,9 @@ done:
1261EXPORT_SYMBOL_GPL(lbs_start_card); 1259EXPORT_SYMBOL_GPL(lbs_start_card);
1262 1260
1263 1261
1264int lbs_stop_card(struct lbs_private *priv) 1262void lbs_stop_card(struct lbs_private *priv)
1265{ 1263{
1266 struct net_device *dev = priv->dev; 1264 struct net_device *dev = priv->dev;
1267 int ret = -1;
1268 struct cmd_ctrl_node *cmdnode; 1265 struct cmd_ctrl_node *cmdnode;
1269 unsigned long flags; 1266 unsigned long flags;
1270 1267
@@ -1289,8 +1286,7 @@ int lbs_stop_card(struct lbs_private *priv)
1289 1286
1290 unregister_netdev(dev); 1287 unregister_netdev(dev);
1291 1288
1292 lbs_deb_leave_args(LBS_DEB_MAIN, "ret %d", ret); 1289 lbs_deb_leave(LBS_DEB_MAIN);
1293 return ret;
1294} 1290}
1295EXPORT_SYMBOL_GPL(lbs_stop_card); 1291EXPORT_SYMBOL_GPL(lbs_stop_card);
1296 1292