diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2017-01-02 08:09:56 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2017-02-16 11:18:27 -0500 |
commit | 747d3f1a8a2fc4d8447c63205421a6a67f22799b (patch) | |
tree | 343250f0415e94e2f081af2947a2094e9fc68f24 | |
parent | a57bac43468e005064d6560183b313b269403f0a (diff) |
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>
-rw-r--r-- | drivers/bluetooth/btqcomsmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btqcomsmd.c b/drivers/bluetooth/btqcomsmd.c index 08c2c93887c1..8d4868af9bbd 100644 --- a/drivers/bluetooth/btqcomsmd.c +++ b/drivers/bluetooth/btqcomsmd.c | |||
@@ -165,6 +165,7 @@ static const struct of_device_id btqcomsmd_of_match[] = { | |||
165 | { .compatible = "qcom,wcnss-bt", }, | 165 | { .compatible = "qcom,wcnss-bt", }, |
166 | { }, | 166 | { }, |
167 | }; | 167 | }; |
168 | MODULE_DEVICE_TABLE(of, btqcomsmd_of_match); | ||
168 | 169 | ||
169 | static struct platform_driver btqcomsmd_driver = { | 170 | static struct platform_driver btqcomsmd_driver = { |
170 | .probe = btqcomsmd_probe, | 171 | .probe = btqcomsmd_probe, |