]> git.baikalelectronics.ru Git - kernel.git/commit
clk: versatile: Switch to assigned clock parents
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 31 Jul 2015 00:20:57 +0000 (17:20 -0700)
committerMichael Turquette <mturquette@baylibre.com>
Mon, 24 Aug 2015 23:48:59 +0000 (16:48 -0700)
commitc4f6f9fa32091d8eb1b7d1bbe5b67ae8601acfe4
tree15e208c11378896a0acefb35976f7dfa35cac110
parent526fba501da4ef1c51db96fcabf3682a9c671a58
clk: versatile: Switch to assigned clock parents

We're removing struct clk from the clk provider API. This code is
calling the consumer APIs to change the parent to a 1 MHz fixed
rate clock for each of the clocks that the driver provides. Move
to using the assigned-clock-parents DT property for this instead.
Because this is an ABI break, detect if the property is missing
and fall back to setting the parent explicitly before the clocks
are registered.

Acked-by: Pawel Moll <pawel.moll@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Documentation/devicetree/bindings/arm/sp810.txt
drivers/clk/versatile/clk-sp810.c