diff options
| author | Liao Chen <[email protected]> | 2024-08-14 02:45:55 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2024-08-27 08:10:23 -0700 |
| commit | fa8df3cbd3c0a1b62b4127d779fbf51eb17e22f1 (patch) | |
| tree | fd80b4d07afb20f9c91368cd436855b22a496ed9 | |
| parent | 63be321e5a096746b396fc43c7d25135a61617c9 (diff) | |
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 <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
| -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 = { |