mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
7b808924d6
commit
f4c5e80fab
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue