]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btqcomsmd: Fix module autoload
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 2 Jan 2017 13:09:56 +0000 (10:09 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 16 Feb 2017 16:18:27 +0000 (17:18 +0100)
commit590bf88edae01d66b601a12ddb13b056260618c7
tree343250f0415e94e2f081af2947a2094e9fc68f24
parentfad3bc6b382de566b1fe9dec05f8b83ca77ecbef
Bluetooth: btqcomsmd: 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/bluetooth/btqcomsmd.ko | grep alias
$

After this patch:

$ modinfo drivers/bluetooth/btqcomsmd.ko | grep alias
alias:          of:N*T*Cqcom,wcnss-btC*
alias:          of:N*T*Cqcom,wcnss-bt

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btqcomsmd.c