]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: exynos: Fix driver compilation with ARCH_MULTIPLATFORM
authorTomasz Figa <t.figa@samsung.com>
Sun, 25 May 2014 21:26:03 +0000 (06:26 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 30 May 2014 18:00:25 +0000 (03:00 +0900)
commit4d486f99f51cbdda2e8783f6c92ddb79ea53b908
tree272909fec673df86763747313e0a916e430a4b46
parentd6b7b7d173fe7222a28f5540c2ff7b1b47b9a811
cpufreq: exynos: Fix driver compilation with ARCH_MULTIPLATFORM

Currently Exynos cpufreq drivers rely on globally mapped
clock controller registers to configure frequency of CPU
cores. This is obviously wrong and will be removed in near
future, but to enable support for multi-platform builds
without introducing a regression it needs to be worked
around.

This patch hacks the code to look for clock controller node
in device tree and map its registers using of_iomap(),
instead of relying on global mapping, so dependencies on
platform headers are removed and the driver can compile
again with multiplatform support.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/exynos-cpufreq.c
drivers/cpufreq/exynos-cpufreq.h
drivers/cpufreq/exynos4210-cpufreq.c
drivers/cpufreq/exynos4x12-cpufreq.c
drivers/cpufreq/exynos5250-cpufreq.c