diff options
author | Liao Chen <liaochen4@huawei.com> | 2024-08-14 05:45:55 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-08-27 18:10:23 +0300 |
commit | fa8df3cbd3c0a1b62b4127d779fbf51eb17e22f1 (patch) | |
tree | fd80b4d07afb20f9c91368cd436855b22a496ed9 /drivers/hwmon | |
parent | 63be321e5a096746b396fc43c7d25135a61617c9 (diff) | |
download | linux-fa8df3cbd3c0a1b62b4127d779fbf51eb17e22f1.tar.xz |
hwmon: (gsc-hwmon) 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>
Message-ID: <20240814024555.3875387-1-liaochen4@huawei.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/gsc-hwmon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/gsc-hwmon.c b/drivers/hwmon/gsc-hwmon.c index cb2f01dc4326..4514f3ed90cc 100644 --- a/drivers/hwmon/gsc-hwmon.c +++ b/drivers/hwmon/gsc-hwmon.c @@ -400,6 +400,7 @@ static const struct of_device_id gsc_hwmon_of_match[] = { { .compatible = "gw,gsc-adc", }, {} }; +MODULE_DEVICE_TABLE(of, gsc_hwmon_of_match); static struct platform_driver gsc_hwmon_driver = { .driver = { |