[media] em28xx: add a missing le16_to_cpu conversion
[deliverable/linux.git] / 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";
This page took 0.056006 seconds and 5 git commands to generate.