From: Liao Chen Date: Wed, 14 Aug 2024 03:04:43 +0000 (+0000) Subject: usb: bdc: fix module autoloading X-Git-Tag: v6.12-rc1~42^2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8557ef3f24e48d00c09d85ef9241fb43f4fdfb0e;p=thirdparty%2Fkernel%2Flinux.git usb: bdc: fix module autoloading Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen Acked-by: Florian Fainelli Link: https://lore.kernel.org/r/20240814030443.3876203-1-liaochen4@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index 35a652807fca8..5149e2b7f0508 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 = {