clocksource: sh_mtu2: Release clock when sh_mtu2_register() fails
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 8 Nov 2013 10:07:59 +0000 (11:07 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 20 Nov 2013 20:55:21 +0000 (21:55 +0100)
commita4a5fc3b64cd553820d97667056506636eaaba77
tree29c0a4c59eabe9b610e3295f53dfcec8f0a45670
parent1c283531115bda77a9b559271311c1983fbcffaa
clocksource: sh_mtu2: Release clock when sh_mtu2_register() fails

Fix the probe error path to release the clock resource when the
sh_mtu2_register() call fails.

Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/sh_mtu2.c