mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] of: base.c: Use correct device-tree in of_add_initrd()
@ 2013-08-14 10:38 David Jander
  2013-08-14 12:44 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: David Jander @ 2013-08-14 10:38 UTC (permalink / raw)
  To: s.hauer; +Cc: barebox, David Jander

Otherwise only the internal DT is modified, not necessarily the one passed
to the kernel.

Signed-off-by: David Jander <david@protonic.nl>
---
 drivers/of/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 34a06c2..ce474be 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1732,7 +1732,7 @@ int of_add_initrd(struct device_node *root, resource_size_t start,
 	struct device_node *chosen;
 	__be32 buf[2];
 
-	chosen = of_find_node_by_path("/chosen");
+	chosen = of_find_node_by_path_from(root, "/chosen");
 	if (!chosen)
 		return -EINVAL;
 
-- 
1.8.1.2


_______________________________________________
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] of: base.c: Use correct device-tree in of_add_initrd()
  2013-08-14 10:38 [PATCH] of: base.c: Use correct device-tree in of_add_initrd() David Jander
@ 2013-08-14 12:44 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-08-14 12:44 UTC (permalink / raw)
  To: David Jander; +Cc: barebox

Hi David,

On Wed, Aug 14, 2013 at 12:38:56PM +0200, David Jander wrote:
> Otherwise only the internal DT is modified, not necessarily the one passed
> to the kernel.
> 
> Signed-off-by: David Jander <david@protonic.nl>

Thanks. Applied to master and stable/v2013.08

Sascha

> ---
>  drivers/of/base.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/of/base.c b/drivers/of/base.c
> index 34a06c2..ce474be 100644
> --- a/drivers/of/base.c
> +++ b/drivers/of/base.c
> @@ -1732,7 +1732,7 @@ int of_add_initrd(struct device_node *root, resource_size_t start,
>  	struct device_node *chosen;
>  	__be32 buf[2];
>  
> -	chosen = of_find_node_by_path("/chosen");
> +	chosen = of_find_node_by_path_from(root, "/chosen");
>  	if (!chosen)
>  		return -EINVAL;
>  
> -- 
> 1.8.1.2
> 
> 

-- 
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:[~2013-08-14 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 10:38 [PATCH] of: base.c: Use correct device-tree in of_add_initrd() David Jander
2013-08-14 12:44 ` Sascha Hauer

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