ARM: shmobile: only call rcar_gen2_clocks_init() if present
authorSimon Horman <horms@verge.net.au>
Mon, 31 Oct 2016 09:52:17 +0000 (10:52 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 2 Nov 2016 09:15:07 +0000 (10:15 +0100)
commite11fc795215eca872d8d64087568c28ba739f659
tree0d290370226d2aaeb5b628e57a913fb0000247aa
parent9255f6fd453e1ba7ffa58427a04c52f68b96862f
ARM: shmobile: only call rcar_gen2_clocks_init() if present

The RZ/G1M (r8a7743) uses the R-Car Gen2 core, but not the R-Car Gen2 clock
driver. This is a harbinger of a transition for R-Car Gen2 SoCs. As the
process to get all the required pieces in place is somewhat complex it
seems useful to try to disentangle dependencies where possible.

The approach here is to temporarily disable calling rcar_gen2_clocks_init()
if no R-Car Gen2 SoC are configured and thus the symbol will not be
present.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/mach-shmobile/setup-rcar-gen2.c