[PATCH 2/9] ARM: rpi: move model detection before console init
Lucas Stach
l.stach at pengutronix.de
Wed Mar 1 06:31:30 PST 2017
This way we can print the correct model in the Barebox banner.
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
arch/arm/boards/raspberry-pi/rpi-common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c
index 7441c06437dd..db9af2be4245 100644
--- a/arch/arm/boards/raspberry-pi/rpi-common.c
+++ b/arch/arm/boards/raspberry-pi/rpi-common.c
@@ -278,7 +278,7 @@ static int rpi_mem_init(void)
}
mem_initcall(rpi_mem_init);
-static int rpi_console_init(void)
+static int rpi_postcore_init(void)
{
rpi_get_board_rev();
barebox_set_hostname("rpi");
@@ -286,7 +286,7 @@ static int rpi_console_init(void)
bcm2835_register_uart();
return 0;
}
-console_initcall(rpi_console_init);
+postcore_initcall(rpi_postcore_init);
static int rpi_clock_init(void)
{
--
2.11.0
More information about the barebox
mailing list