[PATCH add immr alias 1/4] powerpc: Teach get_immrbase to use immr alias if it exists.

Stephen Rothwell sfr at canb.auug.org.au
Wed Aug 6 13:41:30 EST 2008


Hi John,

[From further in the discussion, this may no longer be relevant ...]

On Tue,  5 Aug 2008 14:13:37 -0600 John Rigby <jrigby at freescale.com> wrote:
>
> -	soc = of_find_node_by_type(NULL, "soc");
> +	/*
> +	 * First look for an immr alias
> +	 */
> +	np = of_find_node_by_name(NULL, "/aliases");
> +	if (np) {
> +		path = of_get_property(np, "immr", NULL);
> +		if (path)
> +			soc = of_find_node_by_name(NULL, path);

		of_node_put(np);

> +	}
-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080806/25cd3f1d/attachment.pgp>


More information about the Linuxppc-dev mailing list