projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/drivers/clk/ti/clockdomain.c
b/drivers/clk/ti/clockdomain.c
index 35fe1085480cf33da68547e76a7e126d5b95738b..b82ef07f340341052fa8a92ddacd8f65845ba843 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);