clocksource/drivers/fttmr010: Use state container
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 18 May 2017 20:17:01 +0000 (22:17 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 12 Jun 2017 08:14:00 +0000 (10:14 +0200)
commite7bad212ca0e6b1dcca1e0316ca8658c738c1206
tree3d7b90061ad072196bbcc6c73439d18e9eccc40c
parentdd98442e17a66318b021d4342abf53069cc8bed1
clocksource/drivers/fttmr010: Use state container

This converts the Faraday FTTMR010 to use the state container
design pattern. Take some care to handle the state container
and free:ing of resources as has been done in the Moxa driver.

Cc: Joel Stanley <joel@jms.id.au>
Tested-by: Jonas Jensen <jonas.jensen@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-fttmr010.c