]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91: pm: fix SRAM allocation
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 3 Mar 2015 07:38:07 +0000 (08:38 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 3 Mar 2015 19:07:13 +0000 (20:07 +0100)
commit5d6f90cbd07b2529178d7eab9a499b5c8d33a0d0
treeb8ccfa8b22924c250f4ee4725813c498582fb174
parent531fe250c0d91d1b5414a9da90fc959ab67c0f10
ARM: at91: pm: fix SRAM allocation

On some platforms, there are multiple SRAM nodes defined in the device tree but
some of them are disabled, leading to allocation failure. Try to find the first
enabled SRAM node and allocate from it.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/pm.c