Skip to content

Commit

Permalink
of: Move OF_IS_DYNAMIC and OF_MARK_DYNAMIC macros to of.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Grant Likely committed Oct 15, 2009
1 parent 6f19249 commit 61e955d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/sparc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ struct of_irq_controller {
void *data;
};

#define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags)
#define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags)

extern struct device_node *of_find_node_by_cpuid(int cpuid);
extern int of_set_property(struct device_node *node, const char *name, void *val, int len);
extern struct mutex of_set_property_mutex;
Expand Down
3 changes: 3 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ struct device_node {
#define OF_DYNAMIC 1 /* node and properties were allocated via kmalloc */
#define OF_DETACHED 2 /* node has been detached from the device tree */

#define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags)
#define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags)

#define OF_BAD_ADDR ((u64)-1)

extern struct device_node *of_find_node_by_name(struct device_node *from,
Expand Down

0 comments on commit 61e955d

Please sign in to comment.