Skip to content

Commit 747d3f1

Browse files
Javier Martinez Canillasholtmann
authored andcommitted
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>
1 parent a57bac4 commit 747d3f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/bluetooth/btqcomsmd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ static const struct of_device_id btqcomsmd_of_match[] = {
165165
{ .compatible = "qcom,wcnss-bt", },
166166
{ },
167167
};
168+
MODULE_DEVICE_TABLE(of, btqcomsmd_of_match);
168169

169170
static struct platform_driver btqcomsmd_driver = {
170171
.probe = btqcomsmd_probe,

0 commit comments

Comments
 (0)