Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4c5e80f authored by Shine Liu's avatar Shine Liu Committed by Mauro Carvalho Chehab
Browse files

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: default avatarShine Liu <shinel@foxmail.com>
Reviewed-by: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7b808924
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2382,6 +2382,8 @@ void em28xx_card_setup(struct em28xx *dev)
	}

	em28xx_tuner_setup(dev);

	if(!disable_ir)
		em28xx_ir_init(dev);
}