From: Liao Chen Date: Thu, 22 Aug 2024 13:01:10 +0000 (+0000) Subject: usb: phy: phy-gpio-vbus-usb: fix module autoloading X-Git-Tag: v6.12-rc1~42^2~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3df1b090a437596bb5ca90f5e6ed8648d485af29;p=thirdparty%2Fkernel%2Flinux.git usb: phy: phy-gpio-vbus-usb: 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 Link: https://lore.kernel.org/r/20240822130113.164644-2-liaochen4@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/phy/phy-gpio-vbus-usb.c b/drivers/usb/phy/phy-gpio-vbus-usb.c index 817c242a76ca0..5428b2b67de1f 100644 --- a/drivers/usb/phy/phy-gpio-vbus-usb.c +++ b/drivers/usb/phy/phy-gpio-vbus-usb.c @@ -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 = {