clocksource/drivers/imx-sysctr: Mark two variable with __ro_after_init
authorPeng Fan <peng.fan@nxp.com>
Wed, 1 Dec 2021 12:50:29 +0000 (20:50 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 9 Dec 2021 13:13:04 +0000 (14:13 +0100)
commitf5bd5fc9d478cdb94f89ccc74870dd81d1919b42
tree41f88476ae8b71e9f79b4b881e122cec4bfcaf97
parenta2807f657976b943bf0eb81d026398d28aa89863
clocksource/drivers/imx-sysctr: Mark two variable with __ro_after_init

The variables 'sys_ctr_base' and 'cmpcr' are not be updated after
init, so mark them as __ro_after_init.

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20211201125030.2307746-1-peng.fan@oss.nxp.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-imx-sysctr.c