[PATCH 2/2] ARM: mx6sx-sabresdb: set proper hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also move the initcall to the level matching the name of the
function.

Signed-off-by: Lucas Stach <dev@xxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux