Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6bc822b5 authored by David Woodhouse's avatar David Woodhouse Committed by David S. Miller
Browse files

libertas: switch USB cardp->priv to 'struct lbs_private *' and resulting 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: default avatarDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6e66f03f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+3 −1
Original line number Diff line number Diff line
@@ -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;