diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-11-23 19:37:08 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-23 19:42:08 +0300 |
commit | 01affe239c642c2c6fccfcc97a8cf661e1ae07b4 (patch) | |
tree | fa9ec279ebb6e986478e9a5377fc817391cb2966 /drivers/spi/spi-atmel.c | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) | |
download | linux-01affe239c642c2c6fccfcc97a8cf661e1ae07b4.tar.xz |
spi: spi-axi: 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.
Before this patch:
$ modinfo drivers/spi/spi-axi-spi-engine.ko | grep alias
$
After this patch:
$ modinfo drivers/spi/spi-axi-spi-engine.ko | grep alias
alias: of:N*T*Cadi,axi-spi-engine-1.00.aC*
alias: of:N*T*Cadi,axi-spi-engine-1.00.a
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-atmel.c')
0 files changed, 0 insertions, 0 deletions