Re: [PATCH] Bluetooth: btqcomsmd: Fix module autoload

From: Marcel Holtmann
Date: Thu Feb 16 2017 - 11:19:16 EST


Hi Javier,

> 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@xxxxxxxxxxxxxxx>
> ---
>
> drivers/bluetooth/btqcomsmd.c | 1 +
> 1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel