drivers/clocksource/pistachio: Fix memory corruption in init
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Wed, 17 Aug 2016 10:22:33 +0000 (12:22 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 26 Aug 2016 13:55:59 +0000 (15:55 +0200)
commit4d0e701659aa869a445823149e172e23faa6edac
treeec38f8e9d9626f143f4578b645df0e71f9f97d5a
parent699e36e5b8e9f77b2be4c23f0b309e53be4b2880
drivers/clocksource/pistachio: Fix memory corruption in init

Driver init code incorrectly uses the block base address and as a result
clears clocksource structure's fields instead of the hardware registers.

Commit 09a998201649 ("timekeeping: Lift clocksource cacheline
restriction") has changed the offsets within pistachio_clocksource
structure and what has previously gone unnoticed now leads to a kernel
panic during boot.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/time-pistachio.c