diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:57:51 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:57:51 -0400 |
commit | 61e955db539e748cff2b8ea3bf7705259ebe9fb6 (patch) | |
tree | 444514538ef891634b7161655f5300d90cae936e /include/linux/of.h | |
parent | 6f1924928377bd035a9f64466f91a487c69271d2 (diff) |
of: Move OF_IS_DYNAMIC and OF_MARK_DYNAMIC macros to of.h
Merge of common code duplicated between Sparc, PowerPC and Microblaze
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 65a158dc7257..a66c1eb31693 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -69,6 +69,9 @@ struct device_node { | |||
69 | #define OF_DYNAMIC 1 /* node and properties were allocated via kmalloc */ | 69 | #define OF_DYNAMIC 1 /* node and properties were allocated via kmalloc */ |
70 | #define OF_DETACHED 2 /* node has been detached from the device tree */ | 70 | #define OF_DETACHED 2 /* node has been detached from the device tree */ |
71 | 71 | ||
72 | #define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags) | ||
73 | #define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags) | ||
74 | |||
72 | #define OF_BAD_ADDR ((u64)-1) | 75 | #define OF_BAD_ADDR ((u64)-1) |
73 | 76 | ||
74 | extern struct device_node *of_find_node_by_name(struct device_node *from, | 77 | extern struct device_node *of_find_node_by_name(struct device_node *from, |