clk: Add of_clk_hw_register() API for early clk drivers
authorStephen Boyd <sboyd@kernel.org>
Fri, 12 Apr 2019 18:31:46 +0000 (11:31 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 19 Apr 2019 21:24:35 +0000 (14:24 -0700)
commit89a5ddcc799d5d7dbcf6197b79dafc1dc9f997f5
treeb171c2a606b9fc8ba27dea83f7cbbe92bba405ae
parent1b833924e5b3cea92306069a0f366529341dd260
clk: Add of_clk_hw_register() API for early clk drivers

In some circumstances drivers register clks early and don't have access
to a struct device because the device model isn't initialized yet. Add
an API to let drivers register clks associated with a struct device_node
so that these drivers can participate in getting parent clks through DT.

Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Jeffrey Hugo <jhugo@codeaurora.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Rob Herring <robh@kernel.org>
Tested-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c
include/linux/clk-provider.h