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>
This commit is contained in:

committed by
Nicolas Ferre

parent
a63ba41146
commit
4db0ba22da
@@ -31,4 +31,16 @@ extern void at91sam9_idle(void);
|
||||
|
||||
/* Matrix */
|
||||
extern void at91_ioremap_matrix(u32 base_addr);
|
||||
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
extern void __init at91_rm9200_pm_init(void);
|
||||
extern void __init at91_sam9260_pm_init(void);
|
||||
extern void __init at91_sam9g45_pm_init(void);
|
||||
#else
|
||||
void __init at91_rm9200_pm_init(void) { }
|
||||
void __init at91_sam9260_pm_init(void) { }
|
||||
void __init at91_sam9g45_pm_init(void) { }
|
||||
#endif
|
||||
|
||||
#endif /* _AT91_GENERIC_H */
|
||||
|
Reference in New Issue
Block a user