Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liao Chen and committed by
Greg Kroah-Hartman
8557ef3f e8778a25

+1
+1
drivers/usb/gadget/udc/bdc/bdc_core.c
··· 639 639 { .compatible = "brcm,bdc" }, 640 640 { /* sentinel */ } 641 641 }; 642 + MODULE_DEVICE_TABLE(of, bdc_of_match); 642 643 643 644 static struct platform_driver bdc_driver = { 644 645 .driver = {