Skip to content

Commit

Permalink
libertas: switch USB cardp->priv to 'struct lbs_private *' and result…
Browse files Browse the repository at this point in the history
…ing fix

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>
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 6e66f03 commit 6bc822b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion drivers/net/wireless/libertas/if_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <linux/wait.h>
#include <linux/timer.h>

struct lbs_private;

/**
* This file contains definition for USB interface.
*/
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6bc822b

Please sign in to comment.