From: Liao Chen Date: Thu, 22 Aug 2024 13:01:13 +0000 (+0000) Subject: usb: ehci-brcm: fix module autoloading X-Git-Tag: v6.12-rc1~42^2~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4333dbd9798d470d0c81608bb44bb7c8fd7f7948;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: Florian Fainelli Link: https://lore.kernel.org/r/20240822130113.164644-5-liaochen4@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-brcm.c b/drivers/usb/host/ehci-brcm.c index 77e42c739c580..68cad0620f1a9 100644 --- a/drivers/usb/host/ehci-brcm.c +++ b/drivers/usb/host/ehci-brcm.c @@ -246,6 +246,7 @@ static const struct of_device_id brcm_ehci_of_match[] = { { .compatible = "brcm,bcm7445-ehci", }, {} }; +MODULE_DEVICE_TABLE(of, brcm_ehci_of_match); static struct platform_driver ehci_brcm_driver = { .probe = ehci_brcm_probe,