|
@@ -467,8 +467,6 @@ static int vidioc_g_register(struct file *file, void *priv,
|
|
|
struct usb_usbvision *usbvision = video_drvdata(file);
|
|
|
int err_code;
|
|
|
|
|
|
- if (!v4l2_chip_match_host(®->match))
|
|
|
- return -EINVAL;
|
|
|
/* NT100x has a 8-bit register space */
|
|
|
err_code = usbvision_read_reg(usbvision, reg->reg&0xff);
|
|
|
if (err_code < 0) {
|
|
@@ -488,8 +486,6 @@ static int vidioc_s_register(struct file *file, void *priv,
|
|
|
struct usb_usbvision *usbvision = video_drvdata(file);
|
|
|
int err_code;
|
|
|
|
|
|
- if (!v4l2_chip_match_host(®->match))
|
|
|
- return -EINVAL;
|
|
|
/* NT100x has a 8-bit register space */
|
|
|
err_code = usbvision_write_reg(usbvision, reg->reg & 0xff, reg->val);
|
|
|
if (err_code < 0) {
|