]> 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)
commita7092bf44aeaffc5991c2484b9bf91a290263753
tree15e208c11378896a0acefb35976f7dfa35cac110
parent82b924da0d85585e5a8d049359b1d1182d7a0150
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