summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-dt-sama5.c
diff options
context:
space:
mode:
authorNicolas Ferre2015-01-23 11:47:37 +0100
committerNicolas Ferre2015-01-26 13:43:35 +0100
commitea69f998499d556251d1e2843953cc4f85788464 (patch)
tree02c34ddbad3f14ccc155a05b15ff6a7cba6e167a /arch/arm/mach-at91/board-dt-sama5.c
parentARM: at91: sam9: set arm_pm_idle from sam9_dt_device_init (diff)
downloadkernel-qcow2-linux-ea69f998499d556251d1e2843953cc4f85788464.tar.gz
kernel-qcow2-linux-ea69f998499d556251d1e2843953cc4f85788464.tar.xz
kernel-qcow2-linux-ea69f998499d556251d1e2843953cc4f85788464.zip
ARM: at91: fix ordering of SRAM and PM initialization
The PM initialization needs internal SRAM for allocating a gen_pool and use it to store its PM code. So we need to have of_platform_populate() before this code. Suggested-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/board-dt-sama5.c')
-rw-r--r--arch/arm/mach-at91/board-dt-sama5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/board-dt-sama5.c b/arch/arm/mach-at91/board-dt-sama5.c
index b7338966c8ab..86cffcdef145 100644
--- a/arch/arm/mach-at91/board-dt-sama5.c
+++ b/arch/arm/mach-at91/board-dt-sama5.c
@@ -28,8 +28,8 @@
static void __init sama5_dt_device_init(void)
{
- at91_sam9x5_pm_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+ at91_sam9x5_pm_init();
}
static const char *sama5_dt_board_compat[] __initconst = {