Commit fa8df3cb authored by Liao Chen's avatar Liao Chen Committed by Guenter Roeck

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: default avatarLiao Chen <liaochen4@huawei.com>
Message-ID: <20240814024555.3875387-1-liaochen4@huawei.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 63be321e
...@@ -400,6 +400,7 @@ static const struct of_device_id gsc_hwmon_of_match[] = { ...@@ -400,6 +400,7 @@ static const struct of_device_id gsc_hwmon_of_match[] = {
{ .compatible = "gw,gsc-adc", }, { .compatible = "gw,gsc-adc", },
{} {}
}; };
MODULE_DEVICE_TABLE(of, gsc_hwmon_of_match);
static struct platform_driver gsc_hwmon_driver = { static struct platform_driver gsc_hwmon_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment