diff options
author | Liao Chen <[email protected]> | 2024-08-14 03:04:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-08-22 17:24:39 +0800 |
commit | 8557ef3f24e48d00c09d85ef9241fb43f4fdfb0e (patch) | |
tree | 37cc5bd6528f1cf9ed3865a0e0afc1c2e0593613 | |
parent | e8778a25059c4ca4348398e612c9f1cfb8837258 (diff) |
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 <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/usb/gadget/udc/bdc/bdc_core.c | 1 |
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 = { |