projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e2bcd
)
clocksource/drivers/imx-tpm: Mark two variable with __ro_after_init
author
Peng Fan
<peng.fan@nxp.com>
Tue, 14 Dec 2021 12:07:35 +0000
(20:07 +0800)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Wed, 26 Jan 2022 09:00:50 +0000
(10:00 +0100)
counter_width and timer_base will not be updated after init, so mark
as __ro_after_init.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link:
https://lore.kernel.org/r/20211214120737.1611955-4-peng.fan@oss.nxp.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-imx-tpm.c
patch
|
blob
|
history
diff --git
a/drivers/clocksource/timer-imx-tpm.c
b/drivers/clocksource/timer-imx-tpm.c
index 2c0b0d4eba9ef0121b61112bf5adc721f6842923..3afd9b0a668a67d235291a86e267cdc7ec0e7129 100644
(file)
--- a/
drivers/clocksource/timer-imx-tpm.c
+++ b/
drivers/clocksource/timer-imx-tpm.c
@@
-32,8
+32,8
@@
#define TPM_C0SC_CHF_MASK (0x1 << 7)
#define TPM_C0V 0x24
-static int counter_width;
-static void __iomem *timer_base;
+static int counter_width
__ro_after_init
;
+static void __iomem *timer_base
__ro_after_init
;
static inline void tpm_timer_disable(void)
{