diff options
author | Liao Chen <liaochen4@huawei.com> | 2024-08-22 13:01:10 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-25 13:45:56 +0200 |
commit | 3df1b090a437596bb5ca90f5e6ed8648d485af29 (patch) | |
tree | b4892fc172f860842c0a9f65cd16473a6c3c087d | |
parent | fb9804096bb3508e33ade5a72f2332080cf1324b (diff) | |
download | linux-3df1b090a437596bb5ca90f5e6ed8648d485af29.tar.gz linux-3df1b090a437596bb5ca90f5e6ed8648d485af29.tar.bz2 linux-3df1b090a437596bb5ca90f5e6ed8648d485af29.zip |
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 <liaochen4@huawei.com>
Link: https://lore.kernel.org/r/20240822130113.164644-2-liaochen4@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/phy/phy-gpio-vbus-usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-gpio-vbus-usb.c b/drivers/usb/phy/phy-gpio-vbus-usb.c index 817c242a76ca..5428b2b67de1 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 = { |