[media] em28xx: add a missing le16_to_cpu conversion
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Fri, 19 Apr 2013 20:09:46 +0000 (17:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 22 Apr 2013 13:11:05 +0000 (10:11 -0300)
commit 61ff5d69 "em28xx: improve em2710/em2820 distinction" missed the
le16_to_cpu conversion of the USB vendor ID.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c

index cc63f1963de5ebfe3b123642af1a07c010c2f23b..d2ed67825993b9a958a36f14411cbe8f2e1a7713 100644 (file)
@@ -2910,7 +2910,8 @@ static int em28xx_init_dev(struct em28xx *dev, struct usb_device *udev,
                        break;
                case CHIP_ID_EM2820:
                        chip_name = "em2710/2820";
-                       if (dev->udev->descriptor.idVendor == 0xeb1a) {
+                       if (le16_to_cpu(dev->udev->descriptor.idVendor)
+                                                                   == 0xeb1a) {
                                __le16 idProd = dev->udev->descriptor.idProduct;
                                if (le16_to_cpu(idProd) == 0x2710)
                                        chip_name = "em2710";