clk: stm32f4: fix error handling
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Jul 2016 06:06:43 +0000 (08:06 +0200)
committerMichael Turquette <mturquette@baylibre.com>
Thu, 7 Jul 2016 00:55:31 +0000 (17:55 -0700)
commit334e125b4e136739c4a22818eac6e3b50a48f767
treecfb1b2a83fc1ee9510263061a04b88881c3f4999
parentb24faef9a322022a81cdc0d72cdf4addf7867f22
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
drivers/clk/clk-stm32f4.c