summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorEmilio López <emilio.lopez@collabora.co.uk>2016-02-21 22:26:34 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-03-03 12:42:34 -0300
commitea05e8b4ec91a562bbd26ae2e1d0fc434b8d5d27 (patch)
tree327a31d300215c9b688f16404494244a8bad0896 /drivers/media
parenta288b78b83b6e795409de61dfb842faf5c4c53c3 (diff)
downloadlinux-ea05e8b4ec91a562bbd26ae2e1d0fc434b8d5d27.tar.gz
linux-ea05e8b4ec91a562bbd26ae2e1d0fc434b8d5d27.tar.bz2
linux-ea05e8b4ec91a562bbd26ae2e1d0fc434b8d5d27.zip
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/rc/sunxi-cir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c
index 40f77685cc4a..eaadc081760a 100644
--- a/drivers/media/rc/sunxi-cir.c
+++ b/drivers/media/rc/sunxi-cir.c
@@ -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,