Skip to content

Commit 873f2a1

Browse files
leoliu-ocopsiff
authored andcommitted
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 <[email protected]>
1 parent 9b99013 commit 873f2a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/hwmon/hwmon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,4 +1194,3 @@ module_exit(hwmon_exit);
11941194
MODULE_AUTHOR("Mark M. Hoffman <[email protected]>");
11951195
MODULE_DESCRIPTION("hardware monitoring sysfs/class support");
11961196
MODULE_LICENSE("GPL");
1197-
MODULE_IMPORT_NS(HWMON_THERMAL);

drivers/hwmon/zhaoxin-cputemp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,5 @@ MODULE_LICENSE("GPL");
329329

330330
module_init(zhaoxin_cputemp_init)
331331
module_exit(zhaoxin_cputemp_exit)
332+
333+
MODULE_IMPORT_NS(HWMON_THERMAL);

0 commit comments

Comments
 (0)