clk: meson: clean-up clock registration
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 21 Dec 2018 16:02:36 +0000 (17:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2019 20:33:16 +0000 (22:33 +0200)
commitc8e4f8406842332fb55cd792016e5dac266f6354
tree5ddb7e4b5f07b3e26ccef54ec0bddfd97308be4d
parent6251c1db04f2ac1ef799763da0f2fa1821dde403
clk: meson: clean-up clock registration

[ Upstream commit 8d9981efbcab066d17af4d3c85c169200f6f78df ]

Order, ids and size  between the table of regmap clocks and the onecell
data table could be different.

Set regmap pointer in all the regmap clocks before starting the
registration using the onecell data, to make sure we don't
get into an incoherent situation.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lkml.kernel.org/r/20181221160239.26265-3-jbrunet@baylibre.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/meson/meson-aoclk.c