[media] rc: sunxi-cir: support module autoloading
authorEmilio López <emilio.lopez@collabora.co.uk>
Mon, 22 Feb 2016 01:26:34 +0000 (22:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 15:42:34 +0000 (12:42 -0300)
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>
drivers/media/rc/sunxi-cir.c

index 40f77685cc4a206eca9260ee1ad1271f7bdf1e35..eaadc081760ae1ec21a5a3ff018ad42ee497c5f0 100644 (file)
@@ -326,6 +326,7 @@ static const struct of_device_id sunxi_ir_match[] = {
        { .compatible = "allwinner,sun5i-a13-ir", },
        {},
 };
+MODULE_DEVICE_TABLE(of, sunxi_ir_match);
 
 static struct platform_driver sunxi_ir_driver = {
        .probe          = sunxi_ir_probe,