clocksource: sh_cmt: Take care of clk_put() when setup_irq() fails
authorMagnus Damm <damm@opensource.se>
Fri, 14 Dec 2012 05:53:32 +0000 (14:53 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 12 Mar 2013 17:24:35 +0000 (02:24 +0900)
commit2fd61b32764c82b8410a4374d0ab3ec418ce37c7
tree5ac1e9e3a3faca93810d4baa6378ffb94ddb7162
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
clocksource: sh_cmt: Take care of clk_put() when setup_irq() fails

Make sure clk_put() is called in case of failure in sh_cmt_setup().

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: John Stultz <john.stultz@linaro.org>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_cmt.c