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

video: s3c2410fb: 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: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Krzysztof Kozlowski and committed by
Tomi Valkeinen
7d4a8088 6b610e00

+2 -2
+1 -1
drivers/video/fbdev/s3c2410fb.c
··· 767 767 return IRQ_HANDLED; 768 768 } 769 769 770 - #ifdef CONFIG_CPU_FREQ 770 + #ifdef CONFIG_ARM_S3C24XX_CPUFREQ 771 771 772 772 static int s3c2410fb_cpufreq_transition(struct notifier_block *nb, 773 773 unsigned long val, void *data)
+1 -1
drivers/video/fbdev/s3c2410fb.h
··· 32 32 unsigned long clk_rate; 33 33 unsigned int palette_ready; 34 34 35 - #ifdef CONFIG_CPU_FREQ 35 + #ifdef CONFIG_ARM_S3C24XX_CPUFREQ 36 36 struct notifier_block freq_transition; 37 37 #endif 38 38