]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: xlr: Fix module autoload for OF registration
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 18 Oct 2016 21:01:47 +0000 (18:01 -0300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 25 Oct 2016 09:49:00 +0000 (11:49 +0200)
commitedf9520cc9ff8b64643a33ff8adad6ed8fa8e540
treebe35d10429f22f8a85283e35200b056b03474469
parentf79673ed57a3b63cb2cc2b77fb911961169c94b8
i2c: xlr: Fix module autoload for OF registration

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>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xlr.c