plat/arm: Mark arm platform initialization functions
Mark the initialization functions found in the BL31 boot sequence
as __init so they can be reclaimed when no longer needed.
Change-Id: I687a89346419c7710ef5097feaa325d83c527697
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
diff --git a/plat/arm/common/arm_bl31_setup.c b/plat/arm/common/arm_bl31_setup.c
index ce799b0..c545663 100644
--- a/plat/arm/common/arm_bl31_setup.c
+++ b/plat/arm/common/arm_bl31_setup.c
@@ -71,7 +71,7 @@
* while creating page tables. BL2 has flushed this information to memory, so
* we are guaranteed to pick up good data.
******************************************************************************/
-void arm_bl31_early_platform_setup(void *from_bl2, uintptr_t soc_fw_config,
+void __init arm_bl31_early_platform_setup(void *from_bl2, uintptr_t soc_fw_config,
uintptr_t hw_config, void *plat_params_from_bl2)
{
/* Initialize the console to provide early debug support */
@@ -235,7 +235,7 @@
arm_console_runtime_init();
}
-void bl31_platform_setup(void)
+void __init bl31_platform_setup(void)
{
arm_bl31_platform_setup();
}
@@ -251,7 +251,7 @@
* architectural setup (bl31_arch_setup()) does not do anything platform
* specific.
******************************************************************************/
-void arm_bl31_plat_arch_setup(void)
+void __init arm_bl31_plat_arch_setup(void)
{
const mmap_region_t bl_regions[] = {
MAP_BL31_TOTAL,
@@ -273,7 +273,7 @@
arm_setup_romlib();
}
-void bl31_plat_arch_setup(void)
+void __init bl31_plat_arch_setup(void)
{
arm_bl31_plat_arch_setup();
}