From: Hans Verkuil Date: Sat, 7 Feb 2009 23:15:22 +0000 (-0300) Subject: V4L/DVB (10501): saa7146: prevent unnecessary loading of v4l2-common. X-Git-Tag: v2.6.30-rc1~621^2~542 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eae4d69b6a337d29060dcad3a4e19e3e8ace3e70;p=karo-tx-linux.git V4L/DVB (10501): saa7146: prevent unnecessary loading of v4l2-common. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- 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, 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; }