]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: ehci-brcm: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Thu, 22 Aug 2024 13:01:13 +0000 (13:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2024 11:45:56 +0000 (13:45 +0200)
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>
drivers/usb/host/ehci-brcm.c

index 77e42c739c5806c1da2ca052ce2a0c0888d4e0f4..68cad0620f1a937a1b41e25c8cdf2e01e468188d 100644 (file)
@@ -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,