[PATCH 2/2] ARM: mx6sx-sabresdb: set proper hostname
Lucas Stach
dev at lynxeye.de
Wed Nov 18 11:57:55 PST 2015
Also move the initcall to the level matching the name of the
function.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
arch/arm/boards/freescale-mx6sx-sabresdb/board.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/freescale-mx6sx-sabresdb/board.c b/arch/arm/boards/freescale-mx6sx-sabresdb/board.c
index 353b460..ca22eba 100644
--- a/arch/arm/boards/freescale-mx6sx-sabresdb/board.c
+++ b/arch/arm/boards/freescale-mx6sx-sabresdb/board.c
@@ -241,9 +241,11 @@ static int imx6sx_sdb_coredevices_init(void)
imx6sx_sdb_setup_fec();
+ barebox_set_hostname("mx6sx-sabresdb");
+
imx6_bbu_internal_mmc_register_handler("sd", "/dev/mmc3",
BBU_HANDLER_FLAG_DEFAULT);
return 0;
}
-console_initcall(imx6sx_sdb_coredevices_init);
+coredevice_initcall(imx6sx_sdb_coredevices_init);
--
2.5.0
More information about the barebox
mailing list