Skip to content

Commit

Permalink
hwmon: zhaoxin-cputemp: modify HWMON_THERMAL import
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
leoliu-oc authored and opsiff committed Jul 19, 2024
1 parent 9b99013 commit 873f2a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/hwmon/hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,4 +1194,3 @@ module_exit(hwmon_exit);
MODULE_AUTHOR("Mark M. Hoffman <[email protected]>");
MODULE_DESCRIPTION("hardware monitoring sysfs/class support");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(HWMON_THERMAL);
2 changes: 2 additions & 0 deletions drivers/hwmon/zhaoxin-cputemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,5 @@ MODULE_LICENSE("GPL");

module_init(zhaoxin_cputemp_init)
module_exit(zhaoxin_cputemp_exit)

MODULE_IMPORT_NS(HWMON_THERMAL);

0 comments on commit 873f2a1

Please sign in to comment.