From: Randy Dunlap Date: Mon, 17 Jun 2013 19:27:17 +0000 (-0700) Subject: thermal: fix x86_pkg_temp_thermal.c build and Kconfig X-Git-Tag: v3.11-rc1~27^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3ba020652d1659ce3c07314fabffbe124fe49dd;p=platform%2Fupstream%2Fkernel-adaptation-pc.git thermal: fix x86_pkg_temp_thermal.c build and Kconfig Fix build error in x86_pkg_temp_thermal.c. It requires that X86_MCE & X86_THERMAL_VECTOR be enabled, so depend on the latter symbol, since it depends on X86_MCE (indirectly). Also, X86_PKG_TEMP_THERMAL is already inside an "if THERMAL" block, so remove that duplicated dependency. ERROR: "platform_thermal_package_rate_control" [drivers/thermal/x86_pkg_temp_thermal.ko] undefined! ERROR: "platform_thermal_package_notify" [drivers/thermal/x86_pkg_temp_thermal.ko] undefined! Signed-off-by: Randy Dunlap Acked-by: Borislav Petkov Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 245831c..2ff5cb9 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -171,8 +171,7 @@ config INTEL_POWERCLAMP config X86_PKG_TEMP_THERMAL tristate "X86 package temperature thermal driver" - depends on THERMAL - depends on X86 + depends on X86_THERMAL_VECTOR select THERMAL_GOV_USER_SPACE default m help