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)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 25 Feb 2016 13:30:17 +0000 (14:30 +0100)
commit522ed95c26cd03b768018e441bbc0ff656e30fe4
tree6ef53c64fbb66d41ca48458dea756c047ab0768a
parente392d603f61767cb2de4d82bb55a035918f8342c
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.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/rockchip_timer.c