media: rc: only register protocol for rc device if enabled
authorSean Young <sean@mess.org>
Sun, 12 Nov 2017 21:34:59 +0000 (16:34 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 12:21:04 +0000 (08:21 -0400)
commitc00cb587a2745eb49916db912be7b3d362c6a2f9
tree48c6743679a04c86c759748491ecda3b6eb47354
parentcbb7fa49c7466b19e984f3c87d2a07f5b56a1764
media: rc: only register protocol for rc device if enabled

The raw_register function exists to create input devices associated with
that IR protocol.

If the mce_kbd module is loaded, then every rc device will have mce_kbd
input devices, even if the protocol is not enabled. Change this to call
the register function to when the protocol is enabled.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/rc-ir-raw.c