Thread (1 message) 1 message, 1 author, 2013-08-06
DORMANTno replies

[PATCH] MFD: Make VEXPRESS MFD controller depends on VEXPRESS systems

From: Pawel Moll <hidden>
Date: 2013-08-06 11:24:50

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.

Pawe?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help