ARM: s3c24xx: make S3C24XX_MISCCR access indirect
authorArnd Bergmann <arnd@arndb.de>
Thu, 6 Aug 2020 18:20:22 +0000 (20:20 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 19 Aug 2020 18:58:05 +0000 (20:58 +0200)
commit346f183cc1348cbf3814796afab0ea34475152a9
tree2b299af587c11cd3101b77621f1d8d1cb6b9065a
parent4f9f0e068884336787ea41dd6b1ee52a0cf49477
ARM: s3c24xx: make S3C24XX_MISCCR access indirect

The clk driver uses both a function call into an exported
platform file and a direct register access to a hardcoded
virtual address for accessing the MISCCR register, both
become are a problem for a multiplatform kernel because
of the header file dependency.

Make this an indirect function call through platform data
instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20200806182059.2431-5-krzk@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/common.c
drivers/clk/samsung/clk-s3c2410-dclk.c