clk: imx: gate2: Keep the register writing in on place
authorAbel Vesa <abel.vesa@nxp.com>
Wed, 28 Oct 2020 12:58:59 +0000 (14:58 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 2 Nov 2020 23:55:33 +0000 (07:55 +0800)
commit040adb5fe95ad39c0a714cf3b05950974caf42ed
treeb72fde78cc544df1ac833578ed50e8ddd7e64f4e
parent12309428c27737c21735fb28540c6c6f69f632f6
clk: imx: gate2: Keep the register writing in on place

Move all the register writing to the newly added clk_gate2_do_shared_clks
and call that everywhere need needed. Cleans up the code a little bit.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-gate2.c