aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/zd1211rw
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2008-05-20 20:34:30 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-05-22 06:34:15 -0400
commitd63ddcec20f59e78212aeaf5144e9652c0097211 (patch)
tree2e9176d822eb89f14131ada84ca2660d86716ce6 /drivers/net/wireless/zd1211rw
parentb47385bd4f67481a7dbfcf1b4b82e9a67ecb846c (diff)
misc drivers/net endianness noise
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw')
-rw-r--r--drivers/net/wireless/zd1211rw/zd_mac.c2
-rw-r--r--drivers/net/wireless/zd1211rw/zd_usb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c
index 0c736735e217..c99d4a4fde05 100644
--- a/drivers/net/wireless/zd1211rw/zd_mac.c
+++ b/drivers/net/wireless/zd1211rw/zd_mac.c
@@ -807,7 +807,7 @@ void zd_process_intr(struct work_struct *work)
807 u16 int_status; 807 u16 int_status;
808 struct zd_mac *mac = container_of(work, struct zd_mac, process_intr); 808 struct zd_mac *mac = container_of(work, struct zd_mac, process_intr);
809 809
810 int_status = le16_to_cpu(*(u16 *)(mac->intr_buffer+4)); 810 int_status = le16_to_cpu(*(__le16 *)(mac->intr_buffer+4));
811 if (int_status & INT_CFG_NEXT_BCN) { 811 if (int_status & INT_CFG_NEXT_BCN) {
812 if (net_ratelimit()) 812 if (net_ratelimit())
813 dev_dbg_f(zd_mac_dev(mac), "INT_CFG_NEXT_BCN\n"); 813 dev_dbg_f(zd_mac_dev(mac), "INT_CFG_NEXT_BCN\n");
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c
index 12e24f04dddf..8941f5eb96c2 100644
--- a/drivers/net/wireless/zd1211rw/zd_usb.c
+++ b/drivers/net/wireless/zd1211rw/zd_usb.c
@@ -342,7 +342,7 @@ static inline void handle_regs_int(struct urb *urb)
342 ZD_ASSERT(in_interrupt()); 342 ZD_ASSERT(in_interrupt());
343 spin_lock(&intr->lock); 343 spin_lock(&intr->lock);
344 344
345 int_num = le16_to_cpu(*(u16 *)(urb->transfer_buffer+2)); 345 int_num = le16_to_cpu(*(__le16 *)(urb->transfer_buffer+2));
346 if (int_num == CR_INTERRUPT) { 346 if (int_num == CR_INTERRUPT) {
347 struct zd_mac *mac = zd_hw_mac(zd_usb_to_hw(urb->context)); 347 struct zd_mac *mac = zd_hw_mac(zd_usb_to_hw(urb->context));
348 memcpy(&mac->intr_buffer, urb->transfer_buffer, 348 memcpy(&mac->intr_buffer, urb->transfer_buffer,