diff options
Diffstat (limited to 'drivers/media/video/au0828')
-rw-r--r-- | drivers/media/video/au0828/au0828-video.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/au0828/au0828-video.c b/drivers/media/video/au0828/au0828-video.c index 0dd138370b62..ce80882d45e2 100644 --- a/drivers/media/video/au0828/au0828-video.c +++ b/drivers/media/video/au0828/au0828-video.c | |||
@@ -1348,7 +1348,15 @@ static int vidioc_g_chip_ident(struct file *file, void *priv, | |||
1348 | chip->ident = V4L2_IDENT_NONE; | 1348 | chip->ident = V4L2_IDENT_NONE; |
1349 | chip->revision = 0; | 1349 | chip->revision = 0; |
1350 | 1350 | ||
1351 | if (v4l2_chip_match_host(&chip->match)) { | ||
1352 | chip->ident = V4L2_IDENT_AU0828; | ||
1353 | return 0; | ||
1354 | } | ||
1355 | |||
1351 | au0828_call_i2c_clients(dev, VIDIOC_DBG_G_CHIP_IDENT, chip); | 1356 | au0828_call_i2c_clients(dev, VIDIOC_DBG_G_CHIP_IDENT, chip); |
1357 | if (chip->ident == V4L2_IDENT_NONE) | ||
1358 | return -EINVAL; | ||
1359 | |||
1352 | return 0; | 1360 | return 0; |
1353 | } | 1361 | } |
1354 | 1362 | ||