mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: radxa-rock: set hostname after devicetree initialization
@ 2014-05-13 21:33 Beniamino Galvani
  2014-05-14  7:11 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Beniamino Galvani @ 2014-05-13 21:33 UTC (permalink / raw)
  To: barebox

hostname_init() must be called after the devicetree root node has been
initialized, otherwise the check on board compatible always returns
false.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
---
 arch/arm/boards/radxa-rock/board.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/radxa-rock/board.c b/arch/arm/boards/radxa-rock/board.c
index 691f243..3d9b5be 100644
--- a/arch/arm/boards/radxa-rock/board.c
+++ b/arch/arm/boards/radxa-rock/board.c
@@ -84,4 +84,4 @@ static int hostname_init(void)
 
 	return 0;
 }
-core_initcall(hostname_init);
+postcore_initcall(hostname_init);
-- 
1.7.10.4


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: radxa-rock: set hostname after devicetree initialization
  2014-05-13 21:33 [PATCH] ARM: radxa-rock: set hostname after devicetree initialization Beniamino Galvani
@ 2014-05-14  7:11 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-05-14  7:11 UTC (permalink / raw)
  To: Beniamino Galvani; +Cc: barebox

On Tue, May 13, 2014 at 11:33:31PM +0200, Beniamino Galvani wrote:
> hostname_init() must be called after the devicetree root node has been
> initialized, otherwise the check on board compatible always returns
> false.
> 
> Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>

Applied, thanks

Sascha

> ---
>  arch/arm/boards/radxa-rock/board.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boards/radxa-rock/board.c b/arch/arm/boards/radxa-rock/board.c
> index 691f243..3d9b5be 100644
> --- a/arch/arm/boards/radxa-rock/board.c
> +++ b/arch/arm/boards/radxa-rock/board.c
> @@ -84,4 +84,4 @@ static int hostname_init(void)
>  
>  	return 0;
>  }
> -core_initcall(hostname_init);
> +postcore_initcall(hostname_init);
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-14  7:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-13 21:33 [PATCH] ARM: radxa-rock: set hostname after devicetree initialization Beniamino Galvani
2014-05-14  7:11 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox