Skip to content

Commit

Permalink
ARM: shmobile: sh7372: Make domain_devices[] static __initdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Simon Horman committed Sep 9, 2014
1 parent d6dc6ed commit 9eda01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/setup-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ static struct platform_device *sh7372_late_devices[] __initdata = {

void __init sh7372_add_standard_devices(void)
{
struct pm_domain_device domain_devices[] = {
static struct pm_domain_device domain_devices[] __initdata = {
{ "A3RV", &vpu_device, },
{ "A4MP", &spu0_device, },
{ "A4MP", &spu1_device, },
Expand Down

0 comments on commit 9eda01b

Please sign in to comment.