thermal: fix x86_pkg_temp_thermal.c build and Kconfig
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 17 Jun 2013 19:27:17 +0000 (12:27 -0700)
committerZhang Rui <rui.zhang@intel.com>
Mon, 17 Jun 2013 23:26:24 +0000 (07:26 +0800)
commitb3ba020652d1659ce3c07314fabffbe124fe49dd
tree0e4e463de7f47288b6f231b5bd8a89068cfbaae9
parent23be63f48d928cd5a21db58f73c731357e895250
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 <rdunlap@infradead.org>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/Kconfig