summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2016-07-03 08:06:43 +0200
committerMichael Turquette <mturquette@baylibre.com>2016-07-07 02:55:31 +0200
commit334e125b4e136739c4a22818eac6e3b50a48f767 (patch)
treecfb1b2a83fc1ee9510263061a04b88881c3f4999 /drivers
parentMerge branch 'clk-lpc32xx' into clk-next (diff)
downloadlinux-334e125b4e136739c4a22818eac6e3b50a48f767.tar.xz
linux-334e125b4e136739c4a22818eac6e3b50a48f767.zip
clk: stm32f4: fix error handling
This is likely that checking 'clks[idx]' instead of 'clks[n]' is expected here. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Michael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/1467526003-13318-1-git-send-email-christophe.jaillet@wanadoo.fr
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/clk-stm32f4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-stm32f4.c b/drivers/clk/clk-stm32f4.c
index b6ca33f0c935..02d681008401 100644
--- 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;