summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-cards.c
diff options
context:
space:
mode:
authorShine Liu <shinel@foxmail.com>2009-08-20 23:49:26 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-08-31 02:24:53 -0300
commitf4c5e80faba8ae420d7dc5d9237cc1e0262d7386 (patch)
tree16026ca20409d59dc266745e58f427cbd557008a /drivers/media/video/em28xx/em28xx-cards.c
parent7b808924d65a4d1a0332d0043e02e9eb5dafe32b (diff)
downloadop-kernel-dev-f4c5e80faba8ae420d7dc5d9237cc1e0262d7386.zip
op-kernel-dev-f4c5e80faba8ae420d7dc5d9237cc1e0262d7386.tar.gz
V4L/DVB (12495): em28xx: Don't call em28xx_ir_init when disable_ir is true
We should call em28xx_ir_init(dev) only when disable_ir is true. Signed-off-by: Shine Liu <shinel@foxmail.com> Reviewed-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index 494560e..1c2e544 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -2382,7 +2382,9 @@ void em28xx_card_setup(struct em28xx *dev)
}
em28xx_tuner_setup(dev);
- em28xx_ir_init(dev);
+
+ if(!disable_ir)
+ em28xx_ir_init(dev);
}
OpenPOWER on IntegriCloud