clocksource/drivers/sp804: Prepare for support non-standard register offset
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 18 Sep 2020 13:22:33 +0000 (21:22 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 24 Sep 2020 08:51:04 +0000 (10:51 +0200)
commite69aae713bef63b357d4ff85bcb3f8f63dbf4ba3
tree22dc5e9ba0433823897b3a95fabe9ddf37734262
parent2f71078e7753b2fbba62999aa46c2fad16df9d98
clocksource/drivers/sp804: Prepare for support non-standard register offset

Add two local variables: timer1_base and timer2_base in sp804_of_init(),
to avoid repeatedly calculate the base address of timer2, and make it
easier to recognize timer1. Hope to make the next patch looks more clear.

No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200918132237.3552-6-thunder.leizhen@huawei.com
drivers/clocksource/timer-sp804.c