]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: misc: brcmstb-usb-pinmap: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Thu, 22 Aug 2024 13:01:11 +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-3-liaochen4@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/brcmstb-usb-pinmap.c

index 2b2019c19cdeb111c0823cff5953b07659cd6e38..1ce885e4184c2eea9c9bf95fa5d4de91bcf3823c 100644 (file)
@@ -335,6 +335,7 @@ static const struct of_device_id brcmstb_usb_pinmap_of_match[] = {
        { .compatible = "brcm,usb-pinmap" },
        { },
 };
+MODULE_DEVICE_TABLE(of, brcmstb_usb_pinmap_of_match);
 
 static struct platform_driver brcmstb_usb_pinmap_driver = {
        .driver = {