aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-02-07 18:15:22 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:42 -0400
commiteae4d69b6a337d29060dcad3a4e19e3e8ace3e70 (patch)
tree35cc8aa96f4b6a89ce1f7d887db7b20490f5df6e /drivers/media/common
parent5a5b9647af504a326c02ecbc58ca4224fb408511 (diff)
V4L/DVB (10501): saa7146: prevent unnecessary loading of v4l2-common.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/saa7146_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c
index 1f837c1f7f74..8d8cb7ff3478 100644
--- a/drivers/media/common/saa7146_video.c
+++ b/drivers/media/common/saa7146_video.c
@@ -1124,7 +1124,7 @@ static int vidioc_g_chip_ident(struct file *file, void *__fh,
1124 1124
1125 chip->ident = V4L2_IDENT_NONE; 1125 chip->ident = V4L2_IDENT_NONE;
1126 chip->revision = 0; 1126 chip->revision = 0;
1127 if (v4l2_chip_match_host(&chip->match)) { 1127 if (chip->match.type == V4L2_CHIP_MATCH_HOST && !chip->match.addr) {
1128 chip->ident = V4L2_IDENT_SAA7146; 1128 chip->ident = V4L2_IDENT_SAA7146;
1129 return 0; 1129 return 0;
1130 } 1130 }