diff options
Diffstat (limited to 'drivers/usb/media/et61x251_tas5130d1b.c')
-rw-r--r-- | drivers/usb/media/et61x251_tas5130d1b.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/usb/media/et61x251_tas5130d1b.c b/drivers/usb/media/et61x251_tas5130d1b.c index 65f1ae9cf2b3..3998d76a307a 100644 --- a/drivers/usb/media/et61x251_tas5130d1b.c +++ b/drivers/usb/media/et61x251_tas5130d1b.c | |||
@@ -126,12 +126,16 @@ static struct et61x251_sensor tas5130d1b = { | |||
126 | 126 | ||
127 | int et61x251_probe_tas5130d1b(struct et61x251_device* cam) | 127 | int et61x251_probe_tas5130d1b(struct et61x251_device* cam) |
128 | { | 128 | { |
129 | /* This sensor has no identifiers, so let's attach it anyway */ | 129 | const struct usb_device_id tas5130d1b_id_table[] = { |
130 | et61x251_attach_sensor(cam, &tas5130d1b); | 130 | { USB_DEVICE(0x102c, 0x6251), }, |
131 | { } | ||
132 | }; | ||
131 | 133 | ||
132 | /* Sensor detection is based on USB pid/vid */ | 134 | /* Sensor detection is based on USB pid/vid */ |
133 | if (le16_to_cpu(tas5130d1b.usbdev->descriptor.idProduct) != 0x6251) | 135 | if (!et61x251_match_id(cam, tas5130d1b_id_table)) |
134 | return -ENODEV; | 136 | return -ENODEV; |
135 | 137 | ||
138 | et61x251_attach_sensor(cam, &tas5130d1b); | ||
139 | |||
136 | return 0; | 140 | return 0; |
137 | } | 141 | } |