On 6 August 2013 16:54, Pawel Moll
<pawel.moll@arm.com> wrote:
On Tue, 2013-08-06 at 12:18 +0100, Manjunath Goudar wrote:
> You are suggesting me to fix this issue using following code.
>
>
> #ifdef CONFIG_OF
> bridge_node = of_find_node_by_phandle(
> be32_to_cpup(prop));
> #endif
> break;
> }
> #ifdef CONFIG_OF
> bridge_node = of_get_next_parent(bridge_node);
> #endif
>
Em, this would be a possibility, but I think the right thing to do is to
add dummies to "include/linux/of.h". Search for "of_get_parent" and
"of_find_node_by_name" in this header - you will find declarations in
"#ifdef CONFIG_OF" block and dummy implementations (returning NULL) in
the equivalent #else part.
Ok I will do.
Paweł