Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] rc: sunxi-cir: support module autoloading

MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on
systems supporting infrared. This commit adds the missing line so it
works out of the box when built as a module and running on a sunxi
system with an infrared receiver.

Signed-off-by: Emilio López <emilio.lopez@collabora.co.uk>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Emilio López and committed by
Mauro Carvalho Chehab
ea05e8b4 a288b78b

+1
+1
drivers/media/rc/sunxi-cir.c
··· 326 326 { .compatible = "allwinner,sun5i-a13-ir", }, 327 327 {}, 328 328 }; 329 + MODULE_DEVICE_TABLE(of, sunxi_ir_match); 329 330 330 331 static struct platform_driver sunxi_ir_driver = { 331 332 .probe = sunxi_ir_probe,