Skip to contentSkip to conversation

ARM: shmobile: koelsch, lager: Annotate clk_names with __initconst

PATCH New Simon Horman 3 participants 5 messages Mar 13, 2014 – Mar 14, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover ARM: shmobile: koelsch, lager: Annotate clk_names with __initconst

Add __initconst annotations to recently added clk_names.

Depends on
"[PATCH v2 00/03] ARM: shmobile: Break out and extend clock workaround V2"

Simon Horman (2):
ARM: shmobile: koelsch: Annotate clk_names with __initconst
ARM: shmobile: lager: Annotate clk_names with __initconst

 arch/arm/mach-shmobile/board-koelsch-reference.c | 2 +-
 arch/arm/mach-shmobile/board-lager-reference.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.5.2
#1 lore raw

PATCH 1/2 ARM: shmobile: koelsch: Annotate clk_names with __initconst

---
 arch/arm/mach-shmobile/board-koelsch-reference.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/board-koelsch-reference.c +1 -1
index a760f7f..1e6a436 100644
@@ -85,7 +85,7 @@ static void __init koelsch_add_du_device(void)
  * This is a really crude hack to provide clkdev support to platform
  * devices until they get moved to DT.
  */
-static const struct clk_name clk_names[] = {
+static const struct clk_name clk_names[] __initconst = {
 	{ "cmt0", NULL, "sh_cmt.0" },
 	{ "scifa0", NULL, "sh-sci.0" },
 	{ "scifa1", NULL, "sh-sci.1" },
Signature · 1 line
1.8.5.2
#2 lore raw

PATCH 2/2 ARM: shmobile: lager: Annotate clk_names with __initconst

In reply to Simon Horman
---
 arch/arm/mach-shmobile/board-lager-reference.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/board-lager-reference.c +1 -1
index c76248b..7ff395e 100644
@@ -89,7 +89,7 @@ static void __init lager_add_du_device(void)
  * This is a really crude hack to provide clkdev support to platform
  * devices until they get moved to DT.
  */
-static const struct clk_name clk_names[] = {
+static const struct clk_name clk_names[] __initconst = {
 	{ "cmt0", NULL, "sh_cmt.0" },
 	{ "scifa0", NULL, "sh-sci.0" },
 	{ "scifa1", NULL, "sh-sci.1" },
Signature · 1 line
1.8.5.2
#3 lore raw

cover ARM: shmobile: koelsch, lager: Annotate clk_names with __initconst

In reply to Simon Horman
Quoted 8 lines · Simon Horman

Add __initconst annotations to recently added clk_names.

Depends on
"[PATCH v2 00/03] ARM: shmobile: Break out and extend clock workaround V2"

Simon Horman (2):
ARM: shmobile: koelsch: Annotate clk_names with __initconst
ARM: shmobile: lager: Annotate clk_names with __initconst

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#4 lore raw

cover ARM: shmobile: koelsch, lager: Annotate clk_names with __initconst

Quoted 4 lines · Geert Uytterhoeven
Quoted 2 lines · Simon Horman

Add __initconst annotations to recently added clk_names.

Quoted 8 lines
Quoted 6 lines

Depends on
"[PATCH v2 00/03] ARM: shmobile: Break out and extend clock workaround V2"

Simon Horman (2):
ARM: shmobile: koelsch: Annotate clk_names with __initconst
ARM: shmobile: lager: Annotate clk_names with __initconst

Thanks, I will queue these up.