aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-11 18:36:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:54 -0500
commit202f3f3ac90d8781ec1f37556c63aaf594b53581 (patch)
treefc600fdb69392c1359ec6ec2110715dd51086ac9
parent1f8a08342c8c1c90d0b752f28eb6f24ea7164cdb (diff)
libertas: kill rx_urb_recall and eth_dev members of struct usb_card_rec
Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/libertas/if_usb.c12
-rw-r--r--drivers/net/wireless/libertas/if_usb.h3
2 files changed, 2 insertions, 13 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);
diff --git a/drivers/net/wireless/libertas/if_usb.h b/drivers/net/wireless/libertas/if_usb.h
index f028df1d018c..668410f82057 100644
--- a/drivers/net/wireless/libertas/if_usb.h
+++ b/drivers/net/wireless/libertas/if_usb.h
@@ -47,7 +47,6 @@ struct read_cb_info {
47 47
48/** USB card description structure*/ 48/** USB card description structure*/
49struct usb_card_rec { 49struct usb_card_rec {
50 struct net_device *eth_dev;
51 struct usb_device *udev; 50 struct usb_device *udev;
52 struct urb *rx_urb, *tx_urb; 51 struct urb *rx_urb, *tx_urb;
53 struct lbs_private *priv; 52 struct lbs_private *priv;
@@ -75,8 +74,6 @@ struct usb_card_rec {
75 u32 usb_event_cause; 74 u32 usb_event_cause;
76 u8 usb_int_cause; 75 u8 usb_int_cause;
77 76
78 u8 rx_urb_recall;
79
80 s8 bootcmdresp; 77 s8 bootcmdresp;
81}; 78};
82 79