From: Javier Martinez Canillas Date: Tue, 18 Oct 2016 21:01:48 +0000 (-0300) Subject: i2c: digicolor: Fix module autoload X-Git-Tag: MMI-PSA29.97-13-9~6876^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60a951af8e1656e2a17a96d64941aafe0668d750;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git i2c: digicolor: Fix module autoload If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Signed-off-by: Javier Martinez Canillas Acked-by: Baruch Siach Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-digicolor.c b/drivers/i2c/busses/i2c-digicolor.c index 9604024e0eb0..49f2084f7bb5 100644 --- a/drivers/i2c/busses/i2c-digicolor.c +++ b/drivers/i2c/busses/i2c-digicolor.c @@ -368,6 +368,7 @@ static const struct of_device_id dc_i2c_match[] = { { .compatible = "cnxt,cx92755-i2c" }, { }, }; +MODULE_DEVICE_TABLE(of, dc_i2c_match); static struct platform_driver dc_i2c_driver = { .probe = dc_i2c_probe,