clk: Prepare for clk registration API that uses DT nodes
authorStephen Boyd <sboyd@kernel.org>
Fri, 12 Apr 2019 18:31:44 +0000 (11:31 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 19 Apr 2019 21:24:28 +0000 (14:24 -0700)
commitfceaa7d8004339820a0026d163b20becc796d1af
tree54484835592729c57ab9399e98b1d737d9f6d3b4
parentd1011cba02f2f931f0a95ea093cb25bc7738ff4d
clk: Prepare for clk registration API that uses DT nodes

Split out the body of the clk_register() function so it can be shared
between the different types of registration APIs (DT, device).

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