diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-10-14 21:03:07 (GMT) |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-10-15 23:17:03 (GMT) |
commit | 0a4807c2f9a4a1afc2163089176abdc7ee4a361a (patch) | |
tree | c61a4f77029b38602dd1a29539b68b00644e8d8b /include/dt-bindings/clock/vf610-clock.h | |
parent | 087a920d4a3e33285f93a0ae7607f71095ffe601 (diff) | |
download | linux-0a4807c2f9a4a1afc2163089176abdc7ee4a361a.tar.xz |
clk: Make of_clk_get_parent_name() robust with #clock-cells = 1
If a clock provider has #clock-cells = 1 and we call
of_clk_get_parent_name() on it we may end up returning the name
of the provider node if the provider doesn't have a
clock-output-names property. This doesn't make sense, especially
when you consider that calling of_clk_get_parent_name() on such a
node with different indices will return the same name each time.
Let's try getting the clock from the framework via of_clk_get()
instead, and only fallback to the node name if we have a provider
with #clock-cells = 0. This way, we can't hand out the same name
for different clocks when we don't actually know their names.
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/dt-bindings/clock/vf610-clock.h')
0 files changed, 0 insertions, 0 deletions