From: Denis Joseph Barrow Date: Tue, 13 Jan 2009 05:56:49 +0000 (-0800) Subject: hso: driver fix for big endian machines. X-Git-Tag: v2.6.29-rc2~11^2~49 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b74f62c1e736ea01c660355526dd54132d241ca9;p=linux-2.6-omap-h63xx.git hso: driver fix for big endian machines. Filip Aben says this fix is neccessary for big endian machines. Signed-off-by: Denis Joseph Barrow Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index c4918b86ed1..d17dc5214c9 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -1792,8 +1792,8 @@ static int mux_device_request(struct hso_serial *serial, u8 type, u16 port, /* initialize */ ctrl_req->wValue = 0; - ctrl_req->wIndex = hso_port_to_mux(port); - ctrl_req->wLength = size; + ctrl_req->wIndex = cpu_to_le16(hso_port_to_mux(port)); + ctrl_req->wLength = cpu_to_le16(size); if (type == USB_CDC_GET_ENCAPSULATED_RESPONSE) { /* Reading command */