[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240814024555.3875387-1-liaochen4@huawei.com>
Date: Wed, 14 Aug 2024 02:45:55 +0000
From: Liao Chen <liaochen4@...wei.com>
To: <linux-hwmon@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <tharvey@...eworks.com>,
<jdelvare@...e.com>, <linux@...ck-us.net>
Subject: [PATCH -next] 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@...wei.com>
---
drivers/hwmon/gsc-hwmon.c | 1 +
1 file changed, 1 insertion(+)
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 = {
--
2.34.1
Powered by blists - more mailing lists