Skip to content

Commit

Permalink
V4L/DVB (10501): saa7146: prevent unnecessary loading of v4l2-common.
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 5a5b964 commit eae4d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/common/saa7146_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ static int vidioc_g_chip_ident(struct file *file, void *__fh,

chip->ident = V4L2_IDENT_NONE;
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;
return 0;
}
Expand Down

0 comments on commit eae4d69

Please sign in to comment.