From: Emilio López Date: Mon, 22 Feb 2016 01:26:34 +0000 (-0300) Subject: [media] rc: sunxi-cir: support module autoloading X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ea05e8b4ec91a562bbd26ae2e1d0fc434b8d5d27;p=linux-beck.git [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 Reviewed-by: Javier Martinez Canillas Signed-off-by: Mauro Carvalho Chehab --- 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,