clocksource/drivers/timer-atmel-tcb: Allow selecting first divider
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 10 Jul 2020 23:08:12 +0000 (01:08 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 11 Jul 2020 16:58:18 +0000 (18:58 +0200)
commit501465d5d7af63af5942cf6af783952bdd757c52
treefe4dde2d57b56a85a4060ae399b9949518fd860f
parentef1d6a20e06397f4a28f23524cdb4611fd629063
clocksource/drivers/timer-atmel-tcb: Allow selecting first divider

The divider selection algorithm never allowed to get index 0. It was also
continuing to look for dividers, trying to find the slow clock selection.
This is not necessary anymore.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200710230813.1005150-9-alexandre.belloni@bootlin.com
drivers/clocksource/timer-atmel-tcb.c