summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/samsung.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-06-27 13:59:08 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-31 15:39:58 +0200
commitebaa81c7287edd40dd4899e5d93a20e7a2b938e7 (patch)
tree5868ab6ebc8c2b0fd1a30e98cdf3277f1612c241 /drivers/tty/serial/samsung.h
parent5bf5635ac1705b8d58fdef5ff0666ef0e72b4629 (diff)
downloadblackbird-obmc-linux-ebaa81c7287edd40dd4899e5d93a20e7a2b938e7.tar.gz
blackbird-obmc-linux-ebaa81c7287edd40dd4899e5d93a20e7a2b938e7.zip
serial: samsung: Register cpufreq notifier only on S3C24xx
The Samsung serial driver registered for CPU frequency transitions to recalculate its clock when ARM clock frequency changes. This is needed only on S3C24xx platform so limit the ifdef to respective cpufreq driver. On S3C24xx the ratio ratio between frequencies of UART's parent clock (pclk) and ARM's parent clock (fclk) remains fixed. Therefore when ARM clock frequency goes down, the serial is also affected. Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/samsung.h')
-rw-r--r--drivers/tty/serial/samsung.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/samsung.h b/drivers/tty/serial/samsung.h
index 2ae4fcee1814..a04acef1cb20 100644
--- a/drivers/tty/serial/samsung.h
+++ b/drivers/tty/serial/samsung.h
@@ -102,7 +102,7 @@ struct s3c24xx_uart_port {
struct s3c24xx_uart_dma *dma;
-#ifdef CONFIG_CPU_FREQ
+#ifdef CONFIG_ARM_S3C24XX_CPUFREQ
struct notifier_block freq_transition;
#endif
};
OpenPOWER on IntegriCloud