Re: [PATCH -next] usb: bdc: fix module autoloading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 14, 2024 at 03:04:43AM +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@xxxxxxxxxx>
> ---
>  drivers/usb/gadget/udc/bdc/bdc_core.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
> index 35a652807fca..5149e2b7f050 100644
> --- a/drivers/usb/gadget/udc/bdc/bdc_core.c
> +++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
> @@ -639,6 +639,7 @@ static const struct of_device_id bdc_of_match[] = {
>  	{ .compatible = "brcm,bdc" },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, bdc_of_match);
>  
>  static struct platform_driver bdc_driver = {
>  	.driver		= {
> -- 
> 2.34.1
> 
> 

What commit id does this fix?




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux