usb: bdc: fix module autoloading
Subsystems (2)
PATCH 1/1 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]>
--- drivers/usb/gadget/udc/bdc/bdc_core.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/gadget/udc/bdc/bdc_core.c +1 -0
@@ -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 = {
Signature · 1 line
2.34.1
Greg KH
maintainerQuoted 24 lines · Liao Chen
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable.Signed-off-by Liao Chen <[email protected]>--- drivers/usb/gadget/udc/bdc/bdc_core.c | 1 + 1 file changed, 1 insertion(+)drivers/usb/gadget/udc/bdc/bdc_core.c +1
-0@@ -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 = {Signature · 1 line
2.34.1
What commit id does this fix?
Quoted 19 lines · Greg KH
Quoted 18 lines · Liao Chen
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable.Signed-off-by Liao Chen <[email protected]>--- drivers/usb/gadget/udc/bdc/bdc_core.c | 1 + 1 file changed, 1 insertion(+)drivers/usb/gadget/udc/bdc/bdc_core.c +1
-0@@ -639,6 +639,7 @@ static const struct of_device_id bdc_of_match[] = { { .compatible = "brcm,bdc" }, {/* sentinel */ } }; +MODULE_DEVICE_TABLE (of, bdc_of_match);
Quoted 8 lines
Quoted 6 lines
drivers/usb/gadget/udc/bdc/bdc_core.c +0
-0static struct platform_driver bdc_driver = { .driver = {Signature · 1 line
2.34.1What commit id does this fix?
Hi, this patch fixes commit 8ac1685bf911f70aea6de67b3db5674c3ea112f1 ("usb: bdc: hook a quick Device Tree compatible string"), which allows bdc device probing.
Thanks,
Chen
Quoted 4 lines · Liao Chen' via BCM-KERNEL-FEEDBACK-LIST,PDL
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable.Signed-off-by Liao Chen <[email protected]>
Acked-by Florian Fainelli <[email protected]>
Thanks!
Signature · 1 line
Florian