From 9a5fed19b029d3c0ba22444d69f4422459b870be Mon Sep 17 00:00:00 2001 From: Jon Medhurst Date: Fri, 31 May 2013 15:12:16 +0100 Subject: [PATCH] cpufreq: ARM big LITTLE: Fixup for new SPC driver Signed-off-by: Jon Medhurst --- drivers/cpufreq/Kconfig.arm | 2 +- drivers/cpufreq/vexpress_big_little.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 203e8959bde4..8327444b76cb 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -18,7 +18,7 @@ config ARM_DT_BL_CPUFREQ config ARM_VEXPRESS_BL_CPUFREQ tristate "ARM Vexpress big LITTLE CPUfreq driver" select ARM_BIG_LITTLE_CPUFREQ - depends on ARM_SPC + depends on VEXPRESS_SPC help This enables the CPUfreq driver for ARM Vexpress big.LITTLE platform. If in doubt, say N. diff --git a/drivers/cpufreq/vexpress_big_little.c b/drivers/cpufreq/vexpress_big_little.c index aac246207048..1abb883c051b 100644 --- a/drivers/cpufreq/vexpress_big_little.c +++ b/drivers/cpufreq/vexpress_big_little.c @@ -30,9 +30,10 @@ static int vexpress_init_opp_table(struct device *cpu_dev) { int i = -1, count, cluster = cpu_to_cluster(cpu_dev->id); - unsigned int *table = vexpress_spc_get_freq_table(cluster, &count); + u32 *table; int ret; + count = vexpress_spc_get_freq_table(cluster, &table); if (!table || !count) { pr_err("SPC controller returned invalid freq table"); return -EINVAL; -- 2.34.1