]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE
authorZheng Bin <zhengbin13@huawei.com>
Sat, 21 May 2022 03:24:38 +0000 (11:24 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 May 2022 13:31:28 +0000 (15:31 +0200)
commitfd2f55b19db73f44932509ab152b7714c940ed28
tree1a9e8d3a43003e17afe5ff56ce6b61f5e607dce0
parent95a6f131e40309df36dc8f5fbbb0e80fe34610af
cpufreq: CPPC: Fix build error without CONFIG_ACPI_CPPC_CPUFREQ_FIE

If CONFIG_ACPI_CPPC_CPUFREQ_FIE is not set, building fails:

drivers/cpufreq/cppc_cpufreq.c: In function ‘populate_efficiency_class’:
drivers/cpufreq/cppc_cpufreq.c:584:2: error: ‘cppc_cpufreq_driver’ undeclared (first use in this function); did you mean ‘cpufreq_driver’?
  cppc_cpufreq_driver.register_em = cppc_cpufreq_register_em;
  ^~~~~~~~~~~~~~~~~~~
  cpufreq_driver

Make declare of cppc_cpufreq_driver out of CONFIG_ACPI_CPPC_CPUFREQ_FIE
to fix this.

Fixes: 21baa9c72795 ("cpufreq: CPPC: Register EM based on efficiency class information")
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c