aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/if_usb.c')
-rw-r--r--drivers/net/wireless/libertas/if_usb.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index b19a6c9c2a78..02192e8a15ea 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -175,8 +175,6 @@ static int if_usb_probe(struct usb_interface *intf,
175 "Rx URB allocation failed\n"); 175 "Rx URB allocation failed\n");
176 goto dealloc; 176 goto dealloc;
177 } 177 }
178 cardp->rx_urb_recall = 0;
179
180 cardp->bulk_in_size = 178 cardp->bulk_in_size =
181 le16_to_cpu(endpoint->wMaxPacketSize); 179 le16_to_cpu(endpoint->wMaxPacketSize);
182 cardp->bulk_in_endpointAddr = 180 cardp->bulk_in_endpointAddr =
@@ -232,8 +230,6 @@ static int if_usb_probe(struct usb_interface *intf,
232 cardp->priv = priv; 230 cardp->priv = priv;
233 cardp->priv->fw_ready = 1; 231 cardp->priv->fw_ready = 1;
234 232
235 cardp->eth_dev = priv->dev;
236
237 priv->hw_host_to_card = if_usb_host_to_card; 233 priv->hw_host_to_card = if_usb_host_to_card;
238 priv->hw_get_int_status = if_usb_get_int_status; 234 priv->hw_get_int_status = if_usb_get_int_status;
239 priv->hw_read_event_cause = if_usb_read_event_cause; 235 priv->hw_read_event_cause = if_usb_read_event_cause;
@@ -978,15 +974,13 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message)
978 if (priv->psstate != PS_STATE_FULL_POWER) 974 if (priv->psstate != PS_STATE_FULL_POWER)
979 return -1; 975 return -1;
980 976
981 netif_device_detach(cardp->eth_dev); 977 netif_device_detach(priv->dev);
982 netif_device_detach(priv->mesh_dev); 978 netif_device_detach(priv->mesh_dev);
983 979
984 /* Unlink tx & rx urb */ 980 /* Unlink tx & rx urb */
985 usb_kill_urb(cardp->tx_urb); 981 usb_kill_urb(cardp->tx_urb);
986 usb_kill_urb(cardp->rx_urb); 982 usb_kill_urb(cardp->rx_urb);
987 983
988 cardp->rx_urb_recall = 1;
989
990 lbs_deb_leave(LBS_DEB_USB); 984 lbs_deb_leave(LBS_DEB_USB);
991 return 0; 985 return 0;
992} 986}
@@ -998,11 +992,9 @@ static int if_usb_resume(struct usb_interface *intf)
998 992
999 lbs_deb_enter(LBS_DEB_USB); 993 lbs_deb_enter(LBS_DEB_USB);
1000 994
1001 cardp->rx_urb_recall = 0;
1002
1003 if_usb_submit_rx_urb(cardp); 995 if_usb_submit_rx_urb(cardp);
1004 996
1005 netif_device_attach(cardp->eth_dev); 997 netif_device_attach(priv->dev);
1006 netif_device_attach(priv->mesh_dev); 998 netif_device_attach(priv->mesh_dev);
1007 999
1008 lbs_deb_leave(LBS_DEB_USB); 1000 lbs_deb_leave(LBS_DEB_USB);