summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/udc
diff options
context:
space:
mode:
authorLiao Chen <liaochen4@huawei.com>2024-08-14 05:04:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-22 11:24:39 +0200
commit8557ef3f24e48d00c09d85ef9241fb43f4fdfb0e (patch)
tree37cc5bd6528f1cf9ed3865a0e0afc1c2e0593613 /drivers/usb/gadget/udc
parentusb: typec: ucsi: Add DATA_RESET option of Connector Reset command (diff)
downloadlinux-8557ef3f24e48d00c09d85ef9241fb43f4fdfb0e.tar.xz
linux-8557ef3f24e48d00c09d85ef9241fb43f4fdfb0e.zip
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 <liaochen4@huawei.com> Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/20240814030443.3876203-1-liaochen4@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/udc')
-rw-r--r--drivers/usb/gadget/udc/bdc/bdc_core.c1
1 files changed, 1 insertions, 0 deletions
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 = {