clocksource/drivers/fttmr010: Parametrise shutdown
authorJoel Stanley <joel@jms.id.au>
Thu, 7 Nov 2019 09:42:15 +0000 (20:12 +1030)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 21 Feb 2020 08:28:38 +0000 (09:28 +0100)
commit84fb64c28acd85ae4d29b9c81926bdfa5f1bf25e
tree7682802a88ef16bf27446dbb56ddbef84d54cf62
parent5fb1c2a5bbf79ccca8d17cf97f66085be5808027
clocksource/drivers/fttmr010: Parametrise shutdown

In preparation for supporting the ast2600 which uses a different method
to clear bits in the control register, use a callback for performing the
shutdown sequence.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20191107094218.13210-2-joel@jms.id.au
drivers/clocksource/timer-fttmr010.c