projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a65239
)
clk: ti: Use of_clk_get_parent_count() instead of open coding
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Fri, 29 May 2015 09:25:47 +0000
(11:25 +0200)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Thu, 4 Jun 2015 20:51:37 +0000
(13:51 -0700)
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/ti/clockdomain.c
patch
|
blob
|
history
diff --git
a/drivers/clk/ti/clockdomain.c
b/drivers/clk/ti/clockdomain.c
index
35fe108
..
b82ef07
100644
(file)
--- a/
drivers/clk/ti/clockdomain.c
+++ b/
drivers/clk/ti/clockdomain.c
@@
-32,7
+32,7
@@
static void __init of_ti_clockdomain_setup(struct device_node *node)
int i;
int num_clks;
- num_clks = of_c
ount_phandle_with_args(node, "clocks", "#clock-cells"
);
+ num_clks = of_c
lk_get_parent_count(node
);
for (i = 0; i < num_clks; i++) {
clk = of_clk_get(node, i);