From: Emilio López Date: Mon, 22 Feb 2016 01:26:34 +0000 (-0300) Subject: [media] rc: sunxi-cir: support module autoloading X-Git-Tag: v4.14-rc1~3648^2^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea05e8b4ec91a562bbd26ae2e1d0fc434b8d5d27;p=platform%2Fkernel%2Flinux-rpi.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 40f7768..eaadc08 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,