i2c: digicolor: Fix module autoload
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 18 Oct 2016 21:01:48 +0000 (18:01 -0300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 25 Oct 2016 09:49:01 +0000 (11:49 +0200)
commit60a951af8e1656e2a17a96d64941aafe0668d750
tree6fe2ca1acadf7ccb73772fab69ea1f61cfe43343
parent2cb496db3d56baa86d53022044c4d25ffe7fa038
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>
drivers/i2c/busses/i2c-digicolor.c