Skip to content
Commit 6c395f66 authored by Zhang Rui's avatar Zhang Rui
Browse files

drivers: thermal: processor_thermal_device: Fix build warning



As a system sleep callback, proc_thermal_resume() should be defined only
if CONFIG_PM_SLEEP is defined.

This fixes a build warning when CONFIG_PM_SLEEP is not set,
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c:446:12: error: 'proc_thermal_resume' defined but not used [-Werror=unused-function]
 static int proc_thermal_resume(struct device *dev)

Fixes: aaba9791 ("drivers: thermal: processor_thermal: Read PPCC on resume")
Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent ff9b011a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment