diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2016-12-10 16:47:33 +0300 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2016-12-29 16:28:55 +0300 |
commit | 731d97c236833c2179ce6fe7a5eb32c46f71df27 (patch) | |
tree | b02a0c9532b2b7f1b2a9fd3a2ec315e2d086e94f /arch/arm/mach-exynos/exynos.c | |
parent | b4765037fc8c392027e604cf05771f0ac2790303 (diff) | |
download | linux-731d97c236833c2179ce6fe7a5eb32c46f71df27.tar.xz |
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/exynos.c')
-rw-r--r-- | arch/arm/mach-exynos/exynos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 757fc11de30d..35b832f4bc7e 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -45,8 +45,8 @@ static struct platform_device exynos_cpuidle = { .id = -1, }; -void __iomem *sysram_base_addr; -void __iomem *sysram_ns_base_addr; +void __iomem *sysram_base_addr __ro_after_init; +void __iomem *sysram_ns_base_addr __ro_after_init; void __init exynos_sysram_init(void) { |