diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-11-14 20:39:53 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-12-01 16:17:45 -0500 |
commit | 75305275a721d33ae9abfaeed2817cec8b2fee9a (patch) | |
tree | 260c042565cc39c539cb41482ebe395c38829966 /arch/arm/mach-omap2 | |
parent | 635e958dad5639102fcf8acf2d8feb6a80c6e689 (diff) |
ARM: use const and __initconst for smp_operations
These smp_operations structures are not over-written, so add "const"
qualifier and replace __initdata with __initconst.
Also, add "static" where it is possible.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Moritz Fischer <moritz.fischer@ettus.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org> # qcom part
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Wei Xu <xuwei5@hisilicon.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap-smp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 0cba9575d2ca..f7666b9f3b21 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -270,7 +270,7 @@ extern u32 omap_read_auxcoreboot0(void); | |||
270 | 270 | ||
271 | extern void omap4_cpu_die(unsigned int cpu); | 271 | extern void omap4_cpu_die(unsigned int cpu); |
272 | 272 | ||
273 | extern struct smp_operations omap4_smp_ops; | 273 | extern const struct smp_operations omap4_smp_ops; |
274 | 274 | ||
275 | extern void omap5_secondary_startup(void); | 275 | extern void omap5_secondary_startup(void); |
276 | extern void omap5_secondary_hyp_startup(void); | 276 | extern void omap5_secondary_hyp_startup(void); |
diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c index 79e1f876d1c9..c625cc10d9f9 100644 --- a/arch/arm/mach-omap2/omap-smp.c +++ b/arch/arm/mach-omap2/omap-smp.c | |||
@@ -241,7 +241,7 @@ static void __init omap4_smp_prepare_cpus(unsigned int max_cpus) | |||
241 | 241 | ||
242 | } | 242 | } |
243 | 243 | ||
244 | struct smp_operations omap4_smp_ops __initdata = { | 244 | const struct smp_operations omap4_smp_ops __initconst = { |
245 | .smp_init_cpus = omap4_smp_init_cpus, | 245 | .smp_init_cpus = omap4_smp_init_cpus, |
246 | .smp_prepare_cpus = omap4_smp_prepare_cpus, | 246 | .smp_prepare_cpus = omap4_smp_prepare_cpus, |
247 | .smp_secondary_init = omap4_secondary_init, | 247 | .smp_secondary_init = omap4_secondary_init, |