ARM: shmobile: mackerel: Make domain_devices[] static __initdata
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 29 Aug 2014 13:26:18 +0000 (15:26 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 9 Sep 2014 02:15:54 +0000 (11:15 +0900)
Make the domain_devices[] array static and __initdata, to reduce kernel
size:
  - Making it static gets rid of the code to copy the data to the stack,
  - Marking it __initdata allows more init memory to be freed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-mackerel.c

index 79f448e93abbfbad9908b1e18604ea83f446c65e..d47b2623267b971d55726b1e97fc7e85f9b0f79f 100644 (file)
@@ -1420,7 +1420,7 @@ static const struct pinctrl_map mackerel_pinctrl_map[] = {
 #define USCCR1         IOMEM(0xE6058144)
 static void __init mackerel_init(void)
 {
-       struct pm_domain_device domain_devices[] = {
+       static struct pm_domain_device domain_devices[] __initdata = {
                { "A4LC", &lcdc_device, },
                { "A4LC", &hdmi_lcdc_device, },
                { "A4LC", &meram_device, },