libertas: switch USB cardp->priv to 'struct lbs_private *' and resulting fix
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 11 Dec 2007 17:53:43 +0000 (12:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:06:43 +0000 (15:06 -0800)
Amazing what interesting things the compiler will tell you if you let it
know what types you expect to be passing around.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/if_usb.h

index a086653803fe4bf9f82c6767909fc7fbe1e5787b..6cd6c962937de5d33758b7c02f41a3dc9d92b5b1 100644 (file)
@@ -1003,7 +1003,7 @@ static int if_usb_resume(struct usb_interface *intf)
 
        cardp->rx_urb_recall = 0;
 
-       if_usb_submit_rx_urb(cardp->priv);
+       if_usb_submit_rx_urb(cardp);
 
        netif_device_attach(cardp->eth_dev);
        netif_device_attach(priv->mesh_dev);
index 224c957e292d0fa2aa11e2dc17e600ab5a1cbb98..f028df1d018c6969f3107a5999a3d32dae387e30 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/wait.h>
 #include <linux/timer.h>
 
+struct lbs_private;
+
 /**
   * This file contains definition for USB interface.
   */
@@ -48,7 +50,7 @@ struct usb_card_rec {
        struct net_device *eth_dev;
        struct usb_device *udev;
        struct urb *rx_urb, *tx_urb;
-       void *priv;
+       struct lbs_private *priv;
        struct read_cb_info rinfo;
 
        int bulk_in_size;