[PATCH] oftree command: Allow free stored dtb before load

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 6 04:25:42 EST 2014


On Thu, Dec 19, 2013 at 09:39:28AM +0100, Jan Weitzel wrote:
> Don't return after freeing stored devicetree if also loading ist wanted.
> Allow  "oftree -f -l my.dtb"
> 
> Signed-off-by: Jan Weitzel <j.weitzel at phytec.de>

Applied, thanks

Sascha


> ---
>  commands/oftree.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/commands/oftree.c b/commands/oftree.c
> index 475f019..3fa516c 100644
> --- a/commands/oftree.c
> +++ b/commands/oftree.c
> @@ -88,7 +88,8 @@ static int do_oftree(int argc, char *argv[])
>  		if (root)
>  			of_delete_node(root);
>  
> -		return 0;
> +		if (!load)
> +			return 0;
>  	}
>  
>  	if (optind < argc)
> -- 
> 1.7.0.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at 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 |



More information about the barebox mailing list