提交 3ba4e384 编写于 作者: H Huang Rui 提交者: Guenter Roeck

hwmon: (fam15h_power) Add CPU_SUP_AMD as the dependence

This patch adds CONFIG_CPU_SUP_AMD as the dependence of fam15h_power
driver. Because the following patch will use the interface from
x86/kernel/cpu/amd.c.

Otherwise, the below error might be encountered:

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `fam15h_power_probe':
>> fam15h_power.c:(.text+0x26e3a3): undefined reference to
>> `amd_get_cores_per_cu'
   fam15h_power.c:(.text+0x26e41e): undefined reference to
`amd_get_cores_per_cu'
Reported-by: Nbuild test robot <lkp@intel.com>
Acked-by: NBorislav Petkov <bp@suse.de>
Signed-off-by: NHuang Rui <ray.huang@amd.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 04e1e70a
...@@ -288,7 +288,7 @@ config SENSORS_K10TEMP ...@@ -288,7 +288,7 @@ config SENSORS_K10TEMP
config SENSORS_FAM15H_POWER config SENSORS_FAM15H_POWER
tristate "AMD Family 15h processor power" tristate "AMD Family 15h processor power"
depends on X86 && PCI depends on X86 && PCI && CPU_SUP_AMD
help help
If you say yes here you get support for processor power If you say yes here you get support for processor power
information of your AMD family 15h CPU. information of your AMD family 15h CPU.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册