summaryrefslogtreecommitdiff
path: root/drivers/clk/bcm
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-12-05 05:23:20 +0000
committerStephen Boyd <sboyd@codeaurora.org>2016-12-08 16:37:33 -0800
commit71a2f11511b4d1dc8b8e326e10ec6533b534ddf1 (patch)
treee6057334500d72bc2637f811ebcb7d761bb7f135 /drivers/clk/bcm
parent16cd77645bddbcee951c63b964f23826dadbfd2e (diff)
downloadlinux-next-71a2f11511b4d1dc8b8e326e10ec6533b534ddf1.tar.gz
clk: add devm_get_clk_from_child() API
Some driver is using this type of DT bindings for clock (more detail, see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.txt). sound_soc { ... cpu { clocks = <&xxx>; ... }; codec { clocks = <&xxx>; ... }; }; Current driver in this case uses of_clk_get() for each node, but there is no devm_of_clk_get() today. OTOH, the problem of having devm_of_clk_get() is that it encourages the use of of_clk_get() when clk_get() is more desirable. Thus, this patch adds new devm_get_clk_from_chile() which explicitly reads as get a clock from a child node of this device. By this function, we can also use this type of DT bindings sound_soc { clocks = <&xxx>, <&xxx>; clock-names = "cpu", "codec"; clock-ranges; ... cpu { ... }; codec { ... }; }; Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [sboyd@codeurora.org: Rename subject to clk + add API] Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/bcm')
0 files changed, 0 insertions, 0 deletions