]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 13 Feb 2013 10:53:27 +0000 (19:53 +0900)
commit48286ab8cb9fed405870837c7c0ccef8d98c9623
treefe90e3995bc1f6b505c5e6139045bb9fa7af30e7
parent1acb8bb693458f58c5fd594b0736d04101e6d81d
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