]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: phy: phy-gpio-vbus-usb: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Thu, 22 Aug 2024 13:01:10 +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>
Link: https://lore.kernel.org/r/20240822130113.164644-2-liaochen4@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-gpio-vbus-usb.c

index 817c242a76ca06a964f14eeec2f9d0033ac250c7..5428b2b67de1fcae6aa2f677c3c51555f7c3449b 100644 (file)
@@ -374,6 +374,7 @@ static const struct of_device_id gpio_vbus_of_match[] = {
        },
        {},
 };
+MODULE_DEVICE_TABLE(of, gpio_vbus_of_match);
 
 static struct platform_driver gpio_vbus_driver = {
        .driver = {