]> git.baikalelectronics.ru Git - kernel.git/commit
clk: at91: Fix a return value in case of error
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 25 Sep 2016 11:53:58 +0000 (13:53 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 20 Oct 2016 23:37:56 +0000 (16:37 -0700)
commit946763734ccf559d0ac2d1020d7d365e1f904807
treeed6da3e83eb3eb294a3e159ec111074315afd392
parenta8b0c46d9979eaa74347bfbc55d32884335efea5
clk: at91: Fix a return value in case of error

If 'clk_hw_register()' fails, it is likely that we expect to return an
error instead of a valid pointer (which would mean success).

Fix commit 4e658b6526ce ("clk: at91: Migrate to clk_hw based registration
and OF APIs")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/at91/clk-programmable.c