[media] rc: Pospone ir raw decoders loading until really needed
authorEzequiel García <elezegarcia@gmail.com>
Thu, 15 Mar 2012 19:53:49 +0000 (16:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 01:11:04 +0000 (22:11 -0300)
commit5da6e984805786c4d96498e1c51e971007dea6dc
tree68785330cc2b7f1b4fcb305b5728414416aebfe6
parent593a2ce0ae22188538d27933236a6acab57a0e65
[media] rc: Pospone ir raw decoders loading until really needed

This changes rc_core to not load the IR decoders at load time,
postponing it to load only if a RC_DRIVER_IR_RAW device is
registered via rc_register_device.
We use a static boolean variable, to ensure decoders modules
are only loaded once.
Tested with rc-loopback device only.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/rc-main.c