diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:58:02 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:58:02 -0400 |
commit | 526b5b3ed97bac22ed0c9feed97adcdc3a25244c (patch) | |
tree | 73ef4a838e5deb9c9865a5ce789d08ac567e9edf /arch/sparc/include | |
parent | b6caf2ad7ce30648b89c1cf40d8f7cf6f4b58033 (diff) |
of: merge of_node_get(), of_node_put() and of_find_all_nodes()
Merge common code between Sparc, PowerPC and Microblaze.
Sparc differs in the implementation at this point, so this patch uses
a #ifdef to handle sparc differently for now. The merging of
implementations will occur in a later patch
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 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/prom.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/sparc/include/asm/prom.h b/arch/sparc/include/asm/prom.h index ddbd870b5720..f845828ca4c6 100644 --- a/arch/sparc/include/asm/prom.h +++ b/arch/sparc/include/asm/prom.h | |||
@@ -51,15 +51,6 @@ extern void prom_build_devicetree(void); | |||
51 | extern void of_populate_present_mask(void); | 51 | extern void of_populate_present_mask(void); |
52 | extern void of_fill_in_cpu_data(void); | 52 | extern void of_fill_in_cpu_data(void); |
53 | 53 | ||
54 | /* Dummy ref counting routines - to be implemented later */ | ||
55 | static inline struct device_node *of_node_get(struct device_node *node) | ||
56 | { | ||
57 | return node; | ||
58 | } | ||
59 | static inline void of_node_put(struct device_node *node) | ||
60 | { | ||
61 | } | ||
62 | |||
63 | /* These routines are here to provide compatibility with how powerpc | 54 | /* These routines are here to provide compatibility with how powerpc |
64 | * handles IRQ mapping for OF device nodes. We precompute and permanently | 55 | * handles IRQ mapping for OF device nodes. We precompute and permanently |
65 | * register them in the of_device objects, whereas powerpc computes them | 56 | * register them in the of_device objects, whereas powerpc computes them |