From: Oliver Neukum Date: Thu, 23 Nov 2006 11:45:31 +0000 (+0100) Subject: USB: endianness fix for asix.c X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9aa742ef7c1a7ff8e6df92a93ce3688e99fa66e3;p=linux-2.6-omap-h63xx.git USB: endianness fix for asix.c the latest update for asix.c reverted some endianness fixes. This reinstates them. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/net/asix.c b/drivers/usb/net/asix.c index 881841e600d..95e682e2c9d 100644 --- a/drivers/usb/net/asix.c +++ b/drivers/usb/net/asix.c @@ -249,9 +249,9 @@ asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index, req->bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE; req->bRequest = cmd; - req->wValue = value; - req->wIndex = index; - req->wLength = size; + req->wValue = cpu_to_le16(value); + req->wIndex = cpu_to_le16(index); + req->wLength = cpu_to_le16(size); usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0),