diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-10-17 13:19:37 -0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-10-17 19:06:47 +0200 |
commit | b156b7f2169bb4d963a2432ff03319fe7d64b823 (patch) | |
tree | b2218805e0f0fcbdc90052e1c9570ef58861bd52 /drivers/firmware/meson | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) | |
download | op-kernel-dev-b156b7f2169bb4d963a2432ff03319fe7d64b823.zip op-kernel-dev-b156b7f2169bb4d963a2432ff03319fe7d64b823.tar.gz |
mtd: nand: omap2: 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/mtd/nand/omap2_nand.ko | grep alias
alias: platform:omap2-nand
After this patch:
$ modinfo drivers/mtd/nand/omap2_nand.ko | grep alias
alias: platform:omap2-nand
alias: of:N*T*Cti,omap2-nandC*
alias: of:N*T*Cti,omap2-nand
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/firmware/meson')
0 files changed, 0 insertions, 0 deletions