clocksource: timer-ti-dm: Check prescaler value
authorLadislav Michl <ladis@linux-mips.org>
Fri, 23 Feb 2018 10:15:01 +0000 (11:15 +0100)
committerTony Lindgren <tony@atomide.com>
Wed, 28 Feb 2018 21:41:30 +0000 (13:41 -0800)
commit58a54f03e73d67432216931854363e4ba15839b9
tree2eff25bbed5762ec7ac87a2ad57b1fcac8567bab
parentad6e4b6fdc99ebbd520d2faf3c6d48198c74a99b
clocksource: timer-ti-dm: Check prescaler value

Invalid value silently disables use of the prescaler.
Use -1 explicitely for that purpose and error out on
invalid value.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/clocksource/timer-ti-dm.c