diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2016-12-10 14:47:33 +0100 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2016-12-29 14:28:55 +0100 |
commit | 731d97c236833c2179ce6fe7a5eb32c46f71df27 (patch) | |
tree | b02a0c9532b2b7f1b2a9fd3a2ec315e2d086e94f /arch/arm/mach-exynos/mcpm-exynos.c | |
parent | ARM: EXYNOS: Constify list of retention registers (diff) | |
download | linux-731d97c236833c2179ce6fe7a5eb32c46f71df27.tar.xz linux-731d97c236833c2179ce6fe7a5eb32c46f71df27.zip |
ARM: EXYNOS: Annotate iomem and pm_data pointers __ro_after_init
The pointers to __iomem sysram and exynos_pm_data are set only during
initcalls. Later the pointers itself are used only in read-only way so
we can mark them __ro_after_init to increase code safeness.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos/mcpm-exynos.c')
-rw-r--r-- | arch/arm/mach-exynos/mcpm-exynos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/mcpm-exynos.c b/arch/arm/mach-exynos/mcpm-exynos.c index f086bf615b29..038fd8c993d0 100644 --- a/arch/arm/mach-exynos/mcpm-exynos.c +++ b/arch/arm/mach-exynos/mcpm-exynos.c @@ -32,7 +32,7 @@ #define EXYNOS5420_USE_ARM_CORE_DOWN_STATE BIT(29) #define EXYNOS5420_USE_L2_COMMON_UP_STATE BIT(30) -static void __iomem *ns_sram_base_addr; +static void __iomem *ns_sram_base_addr __ro_after_init; /* * The common v7_exit_coherency_flush API could not be used because of the |