]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: thermal: processor_thermal_device: Fix build warning
authorZhang Rui <rui.zhang@intel.com>
Tue, 9 Jul 2019 13:19:12 +0000 (21:19 +0800)
committerZhang Rui <rui.zhang@intel.com>
Tue, 9 Jul 2019 13:19:12 +0000 (21:19 +0800)
commit21eb7142b7db997717e951df1409b9574bdfdc31
tree404adaeee1c1202c3bf61306e3424c97b6ee7b2c
parentb6f8c8aac90d183f927d3afd55aae42b329ecaa7
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: 0bade16f135b ("drivers: thermal: processor_thermal: Read PPCC on resume")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c