summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-mackerel.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-08-29 15:26:18 +0200
committerSimon Horman <horms+renesas@verge.net.au>2014-09-09 11:15:54 +0900
commitd6dc6ed8540ab8802c6ba31b4292204dd3cb0fee (patch)
treec591d979e4b737831e6f207489c479a78f4282a3 /arch/arm/mach-shmobile/board-mackerel.c
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
downloadtalos-obmc-linux-d6dc6ed8540ab8802c6ba31b4292204dd3cb0fee.tar.gz
talos-obmc-linux-d6dc6ed8540ab8802c6ba31b4292204dd3cb0fee.zip
ARM: shmobile: mackerel: Make domain_devices[] static __initdata
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>
Diffstat (limited to 'arch/arm/mach-shmobile/board-mackerel.c')
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 79f448e93abb..d47b2623267b 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -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, },
OpenPOWER on IntegriCloud