[PATCH] dt: add of_alias_scan and of_alias_get_id

David Miller davem at davemloft.net
Mon Aug 15 15:43:41 EST 2011


From: Shawn Guo <shawn.guo at linaro.org>
Date: Mon, 15 Aug 2011 09:30:17 +0800

>  	*allnextp = NULL;
>  
> +	/* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */
> +	of_chosen = of_find_node_by_path("/chosen");
> +	if (of_chosen == NULL)
> +		of_chosen = of_find_node_by_path("/chosen at 0");
> +	of_aliases = of_find_node_by_path("/aliases");
> +	of_alias_scan(dt_alloc);
> +
>  	pr_debug(" <- unflatten_device_tree()\n");
>  }

You need to add invocations of the scan to other places in the
tree that build the in-kernel device tree.


More information about the devicetree-discuss mailing list