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

usb: ehci-brcm: 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/20240822130113.164644-5-liaochen4@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Liao Chen and committed by
Greg Kroah-Hartman
4333dbd9 15a34e5d

+1
+1
drivers/usb/host/ehci-brcm.c
··· 246 246 { .compatible = "brcm,bcm7445-ehci", }, 247 247 {} 248 248 }; 249 + MODULE_DEVICE_TABLE(of, brcm_ehci_of_match); 249 250 250 251 static struct platform_driver ehci_brcm_driver = { 251 252 .probe = ehci_brcm_probe,