diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-10-19 00:01:48 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-10-25 12:49:01 +0300 |
commit | 60a951af8e1656e2a17a96d64941aafe0668d750 (patch) | |
tree | 6fe2ca1acadf7ccb73772fab69ea1f61cfe43343 /drivers/i2c/busses/i2c-digicolor.c | |
parent | 2cb496db3d56baa86d53022044c4d25ffe7fa038 (diff) | |
download | linux-60a951af8e1656e2a17a96d64941aafe0668d750.tar.xz |
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 <javier@osg.samsung.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-digicolor.c')
-rw-r--r-- | drivers/i2c/busses/i2c-digicolor.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |