提交 334e125b 编写于 作者: C Christophe JAILLET 提交者: Michael Turquette

clk: stm32f4: fix error handling

This is likely that checking 'clks[idx]' instead of 'clks[n]' is
expected here.
Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NMichael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1467526003-13318-1-git-send-email-christophe.jaillet@wanadoo.fr
上级 b24faef9
...@@ -364,7 +364,7 @@ static void __init stm32f4_rcc_init(struct device_node *np) ...@@ -364,7 +364,7 @@ static void __init stm32f4_rcc_init(struct device_node *np)
NULL, gd->name, gd->parent_name, gd->flags, NULL, gd->name, gd->parent_name, gd->flags,
base + gd->offset, gd->bit_idx, 0, &stm32f4_clk_lock); 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", pr_err("%s: Unable to register leaf clock %s\n",
np->full_name, gd->name); np->full_name, gd->name);
goto fail; goto fail;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册