Commit eae4d69b authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (10501): saa7146: prevent unnecessary loading of v4l2-common.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5a5b9647
...@@ -1124,7 +1124,7 @@ static int vidioc_g_chip_ident(struct file *file, void *__fh, ...@@ -1124,7 +1124,7 @@ static int vidioc_g_chip_ident(struct file *file, void *__fh,
chip->ident = V4L2_IDENT_NONE; chip->ident = V4L2_IDENT_NONE;
chip->revision = 0; chip->revision = 0;
if (v4l2_chip_match_host(&chip->match)) { if (chip->match.type == V4L2_CHIP_MATCH_HOST && !chip->match.addr) {
chip->ident = V4L2_IDENT_SAA7146; chip->ident = V4L2_IDENT_SAA7146;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment