UPSTREAM: clocksource/drivers/rockchip: Add err handle for rk_timer_init
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 15 Feb 2016 01:02:09 +0000 (09:02 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 May 2016 09:48:47 +0000 (17:48 +0800)
commite19fe663b19706c7d4e5307c3b55d71e3cd3c522
tree392fa72e19a23b76e6208ce790ced95204eeda8d
parentc21cd84a43488cb1a8685b71763212990d4821bd
UPSTREAM: clocksource/drivers/rockchip: Add err handle for rk_timer_init

Currently rockchip_timer doesn't do some basic cleanup work when
failing to init the timer. Let's add err handle routine to deal
with all the err cases.

Change-Id: I73bbd32592e6fe157a8d166743db3fc130d0004c
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
(cherry picked from commit 522ed95c26cd03b768018e441bbc0ff656e30fe4)
drivers/clocksource/rockchip_timer.c