aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@smsc.com>2008-10-09 17:34:47 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-09 17:34:47 -0400
commit1d74a6bddf647285e7aa4e9ca4ec16eb071dfd95 (patch)
treea10ed04a5e894514f1f1d910eb90da5863d875f6 /drivers/net/usb
parenta1080a8b0bc301c223c4bf0cea4c5e42f43dcf58 (diff)
smsc95xx: fix usb usage on big endian platforms
Fix warnings caught by David Miller on sparc64 Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/smsc95xx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 412bde6217c0..51e2f5d7d14e 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -320,12 +320,12 @@ static void smsc95xx_async_cmd_callback(struct urb *urb, struct pt_regs *regs)
320 usb_free_urb(urb); 320 usb_free_urb(urb);
321} 321}
322 322
323static int smsc95xx_write_reg_async(struct usbnet *dev, u32 index, u32 *data) 323static int smsc95xx_write_reg_async(struct usbnet *dev, u16 index, u32 *data)
324{ 324{
325 struct usb_context *usb_context; 325 struct usb_context *usb_context;
326 int status; 326 int status;
327 struct urb *urb; 327 struct urb *urb;
328 const u32 size = 4; 328 const u16 size = 4;
329 329
330 urb = usb_alloc_urb(0, GFP_ATOMIC); 330 urb = usb_alloc_urb(0, GFP_ATOMIC);
331 if (!urb) { 331 if (!urb) {
@@ -344,8 +344,8 @@ static int smsc95xx_write_reg_async(struct usbnet *dev, u32 index, u32 *data)
344 USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE; 344 USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE;
345 usb_context->req.bRequest = USB_VENDOR_REQUEST_WRITE_REGISTER; 345 usb_context->req.bRequest = USB_VENDOR_REQUEST_WRITE_REGISTER;
346 usb_context->req.wValue = 00; 346 usb_context->req.wValue = 00;
347 usb_context->req.wIndex = cpu_to_le32(index); 347 usb_context->req.wIndex = cpu_to_le16(index);
348 usb_context->req.wLength = cpu_to_le32(size); 348 usb_context->req.wLength = cpu_to_le16(size);
349 init_completion(&usb_context->notify); 349 init_completion(&usb_context->notify);
350 350
351 usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0), 351 usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0),
@@ -545,7 +545,7 @@ static void smsc95xx_status(struct usbnet *dev, struct urb *urb)
545 } 545 }
546 546
547 memcpy(&intdata, urb->transfer_buffer, 4); 547 memcpy(&intdata, urb->transfer_buffer, 4);
548 le32_to_cpus(intdata); 548 le32_to_cpus(&intdata);
549 549
550 if (netif_msg_link(dev)) 550 if (netif_msg_link(dev))
551 devdbg(dev, "intdata: 0x%08X", intdata); 551 devdbg(dev, "intdata: 0x%08X", intdata);