Skip to content

Commit

Permalink
Bluetooth: btqcomsmd: Fix module autoload
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Javier Martinez Canillas authored and holtmann committed Feb 16, 2017
1 parent a57bac4 commit 747d3f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/bluetooth/btqcomsmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ static const struct of_device_id btqcomsmd_of_match[] = {
{ .compatible = "qcom,wcnss-bt", },
{ },
};
MODULE_DEVICE_TABLE(of, btqcomsmd_of_match);

static struct platform_driver btqcomsmd_driver = {
.probe = btqcomsmd_probe,
Expand Down

0 comments on commit 747d3f1

Please sign in to comment.