ARM: at91: pm: prepare for multiplatform
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 15 Jan 2015 14:59:27 +0000 (15:59 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 16 Jan 2015 17:08:40 +0000 (18:08 +0100)
commit4db0ba22da9f4406c292a6a6110eeb2edd12f16a
tree75afb7f5018a3eaeb7f2328c13d7a43f5247c2fa
parenta63ba4114690cad6e71cbcfd187b0ebf20321dfa
ARM: at91: pm: prepare for multiplatform

Split at91_pm_init() in three variants that are called by the respective SoCs
.init_machine. This allows to remove the of_machine_is_compatible() calls and
move at91_pm_init() out of arch_initcall() which is required for multiplatform.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/board-dt-rm9200.c
arch/arm/mach-at91/board-dt-sam9.c
arch/arm/mach-at91/board-dt-sama5.c
arch/arm/mach-at91/generic.h
arch/arm/mach-at91/pm.c