clocksource: sh_tmu: Release clock when sh_tmu_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:23 +0000 (21:55 +0100)
commit394a4486f009a184b58fc2f2435d6f5f800870bb
tree38e24407a6955f6434a2e375ded4c40e79c6f794
parentbd7549308eed47b3750b3dab692034a553e75663
clocksource: sh_tmu: Release clock when sh_tmu_register() fails

Fix the probe error path to release the clock resource when the
sh_tmu_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_tmu.c