aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-06-27 08:51:38 -0400
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-09-23 03:35:16 -0400
commitd9ca77f0eafabb5495542386777ab2833442089b (patch)
treed0f075ae2e306ca24ec0f0e330ce0d60f1ef67ad
parentfc6b4d12bc394aa9b5c22aa3a2f5128ad6c84a72 (diff)
mtd: nand: s3c2410: 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: Boris Brezillon <boris.brezillon@free-electrons.com>
-rw-r--r--drivers/mtd/nand/s3c2410.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index b1734d76cbc1..d459c19d78de 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -180,7 +180,7 @@ struct s3c2410_nand_info {
180 180
181 enum s3c_cpu_type cpu_type; 181 enum s3c_cpu_type cpu_type;
182 182
183#ifdef CONFIG_CPU_FREQ 183#ifdef CONFIG_ARM_S3C24XX_CPUFREQ
184 struct notifier_block freq_transition; 184 struct notifier_block freq_transition;
185#endif 185#endif
186}; 186};
@@ -701,7 +701,7 @@ static void s3c2440_nand_write_buf(struct mtd_info *mtd, const u_char *buf,
701 701
702/* cpufreq driver support */ 702/* cpufreq driver support */
703 703
704#ifdef CONFIG_CPU_FREQ 704#ifdef CONFIG_ARM_S3C24XX_CPUFREQ
705 705
706static int s3c2410_nand_cpufreq_transition(struct notifier_block *nb, 706static int s3c2410_nand_cpufreq_transition(struct notifier_block *nb,
707 unsigned long val, void *data) 707 unsigned long val, void *data)