mmc: s3cmci: Register cpufreq notifier only on S3C24xx
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 27 Jun 2016 12:52:03 +0000 (14:52 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:46 +0000 (10:34 +0200)
commit39f80bcb0eed20e08090f8b6ed10a0709f1ae36d
treec2502136ed14dbad86d8790807a1782c7880f6c5
parent07c161bcd7ff6d119f828402a776c9e43a50a851
mmc: s3cmci: Register cpufreq notifier only on S3C24xx

The driver registered for CPU frequency transitions to recalculate its
clock when ARM clock frequency changes (ratio between frequencies of
ARM's parent clock (fclk) and clock for peripherals remains fixed).

This is needed only on S3C24xx platform when cpufreq driver is enabled
so limit the ifdef to respective cpufreq Kconfig.

Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/s3cmci.c
drivers/mmc/host/s3cmci.h