clk: renesas: Use pm_clk_no_clocks() helper i.s.o. direct access
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 8 Feb 2017 18:08:44 +0000 (19:08 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 15 May 2017 07:46:31 +0000 (09:46 +0200)
commite05e853e2c254baf4ce11870dca81dee58b5d2d0
tree371ef411fc06dca139212467fbe17a1af5ed3954
parentdcf6a00dffeed8c101a4d34ebf5371bbc48c8f4f
clk: renesas: Use pm_clk_no_clocks() helper i.s.o. direct access

The pm_subsys_data.clock_list member exists only if CONFIG_PM_CLK=y.
Hence direct accesses to this field break compile-testing on platforms
where CONFIG_PM_CLK=n.

To fix this, use the pm_clk_no_clocks() helper instead, for which a
dummy version is provided if CONFIG_PM_CLK=n.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
drivers/clk/renesas/clk-mstp.c
drivers/clk/renesas/renesas-cpg-mssr.c