projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b24faef
)
clk: stm32f4: fix error handling
author
Christophe JAILLET
<
[email protected]
>
Sun, 3 Jul 2016 06:06:43 +0000
(08:06 +0200)
committer
Michael Turquette
<
[email protected]
>
Thu, 7 Jul 2016 00:55:31 +0000
(17:55 -0700)
This is likely that checking 'clks[idx]' instead of 'clks[n]' is
expected here.
Signed-off-by: Christophe JAILLET <
[email protected]
>
Signed-off-by: Michael Turquette <
[email protected]
>
Link: lkml.kernel.org/r/
1467526003
[email protected]
drivers/clk/clk-stm32f4.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-stm32f4.c
b/drivers/clk/clk-stm32f4.c
index b6ca33f0c9356d16479a176e7dcfa5f4f20b4443..02d6810084017212c04cf83ae7b27b586fd74ca7 100644
(file)
--- a/
drivers/clk/clk-stm32f4.c
+++ b/
drivers/clk/clk-stm32f4.c
@@
-364,7
+364,7
@@
static void __init stm32f4_rcc_init(struct device_node *np)
NULL, gd->name, gd->parent_name, gd->flags,
base + gd->offset, gd->bit_idx, 0, &stm32f4_clk_lock);
- if (IS_ERR(clks[
n
])) {
+ if (IS_ERR(clks[
idx
])) {
pr_err("%s: Unable to register leaf clock %s\n",
np->full_name, gd->name);
goto fail;