From 873f2a11bb650156ec0524bb1651716f70950c0a Mon Sep 17 00:00:00 2001 From: leoliu-oc Date: Fri, 19 Jul 2024 18:46:43 +0800 Subject: [PATCH] hwmon: zhaoxin-cputemp: modify HWMON_THERMAL import Since the driver utilizes the hwmon_device_register_for_thermal function, it is necessary to add "MODULE_IMPORT_NS(HWMON_THERMAL)" to the zhaoxin-cputemp.c. Signed-off-by: leoliu-oc --- drivers/hwmon/hwmon.c | 1 - drivers/hwmon/zhaoxin-cputemp.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index fd929c51bf2e0..3a01c76a0c71c 100644 --- a/drivers/hwmon/hwmon.c +++ b/drivers/hwmon/hwmon.c @@ -1194,4 +1194,3 @@ module_exit(hwmon_exit); MODULE_AUTHOR("Mark M. Hoffman "); MODULE_DESCRIPTION("hardware monitoring sysfs/class support"); MODULE_LICENSE("GPL"); -MODULE_IMPORT_NS(HWMON_THERMAL); diff --git a/drivers/hwmon/zhaoxin-cputemp.c b/drivers/hwmon/zhaoxin-cputemp.c index 00037e9cc91e2..fdc0c5ba5e0c1 100644 --- a/drivers/hwmon/zhaoxin-cputemp.c +++ b/drivers/hwmon/zhaoxin-cputemp.c @@ -329,3 +329,5 @@ MODULE_LICENSE("GPL"); module_init(zhaoxin_cputemp_init) module_exit(zhaoxin_cputemp_exit) + +MODULE_IMPORT_NS(HWMON_THERMAL); \ No newline at end of file