Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Ulf Hansson
39f80bcb 07c161bc

+2 -2
+1 -1
drivers/mmc/host/s3cmci.c
··· 1365 1365 .no_detect = 1, 1366 1366 }; 1367 1367 1368 - #ifdef CONFIG_CPU_FREQ 1368 + #ifdef CONFIG_ARM_S3C24XX_CPUFREQ 1369 1369 1370 1370 static int s3cmci_cpufreq_transition(struct notifier_block *nb, 1371 1371 unsigned long val, void *data)
+1 -1
drivers/mmc/host/s3cmci.h
··· 74 74 struct dentry *debug_regs; 75 75 #endif 76 76 77 - #ifdef CONFIG_CPU_FREQ 77 + #ifdef CONFIG_ARM_S3C24XX_CPUFREQ 78 78 struct notifier_block freq_transition; 79 79 #endif 80 80 };