From: Bjørn Mork Date: Wed, 31 Oct 2012 05:08:41 +0000 (+0100) Subject: USB: option: idVendor and idProduct are __le16 X-Git-Tag: upstream/snapshot3+hdmi~6133^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c83b4483606f5fe14127249336ac53ef177a63a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git USB: option: idVendor and idProduct are __le16 The exception is needed on big endian systems too. Signed-off-by: Bjørn Mork Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 05fa671..5839f4d 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1358,9 +1358,9 @@ static int option_probe(struct usb_serial *serial, * Don't bind network interface on Samsung GT-B3730, it is handled by * a separate module. */ - if (dev_desc->idVendor == SAMSUNG_VENDOR_ID && - dev_desc->idProduct == SAMSUNG_PRODUCT_GT_B3730 && - iface_desc->bInterfaceClass != USB_CLASS_CDC_DATA) + if (dev_desc->idVendor == cpu_to_le16(SAMSUNG_VENDOR_ID) && + dev_desc->idProduct == cpu_to_le16(SAMSUNG_PRODUCT_GT_B3730) && + iface_desc->bInterfaceClass != USB_CLASS_CDC_DATA) return -ENODEV; /* Store device id so we can use it during attach. */