aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_usb.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-12-07 10:30:44 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:13 -0500
commitc2df2efe96742b78454acdffe6d278ae334fc838 (patch)
tree972dc13146959e44f2d487bf1b86968f2b175076 /drivers/net/wireless/libertas/if_usb.c
parent1723047d6742cc172d5c0f1a5245deaee67ff331 (diff)
libertas: endianness fixes
Recently I found that that sparse by default doesn't endianness checks. So I changed my compilation habit to be make modules C=1 SUBDIRS=drivers/net/wireless/libertas CHECKFLAGS="-D__CHECK_ENDIAN__" so that I get the little-endian checks from sparse as well. That showed up a good bunch of problems. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_usb.c')
-rw-r--r--drivers/net/wireless/libertas/if_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index e9190a6a1dcf..a17371fe2fe4 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -107,7 +107,7 @@ static void if_usb_set_boot2_ver(struct lbs_private *priv)
107 int rsp_len = sizeof(b2_cmd); 107 int rsp_len = sizeof(b2_cmd);
108 108
109 b2_cmd.action = 0; 109 b2_cmd.action = 0;
110 b2_cmd.version = cpu_to_le16(priv->boot2_version); 110 b2_cmd.version = priv->boot2_version;
111 111
112 if (lbs_cmd(priv, CMD_SET_BOOT2_VER, &b2_cmd, sizeof(b2_cmd), 112 if (lbs_cmd(priv, CMD_SET_BOOT2_VER, &b2_cmd, sizeof(b2_cmd),
113 &b2_cmd, &rsp_len)) { 113 &b2_cmd, &rsp_len)) {
@@ -227,7 +227,7 @@ static int if_usb_probe(struct usb_interface *intf,
227 priv->hw_host_to_card = if_usb_host_to_card; 227 priv->hw_host_to_card = if_usb_host_to_card;
228 priv->hw_get_int_status = if_usb_get_int_status; 228 priv->hw_get_int_status = if_usb_get_int_status;
229 priv->hw_read_event_cause = if_usb_read_event_cause; 229 priv->hw_read_event_cause = if_usb_read_event_cause;
230 priv->boot2_version = le16_to_cpu(udev->descriptor.bcdDevice); 230 priv->boot2_version = udev->descriptor.bcdDevice;
231 231
232 /* Delay 200 ms to waiting for the FW ready */ 232 /* Delay 200 ms to waiting for the FW ready */
233 if_usb_submit_rx_urb(cardp); 233 if_usb_submit_rx_urb(cardp);