summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/prom.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2009-10-15 18:58:00 +0200
committerGrant Likely <grant.likely@secretlab.ca>2009-10-15 18:58:00 +0200
commitb6caf2ad7ce30648b89c1cf40d8f7cf6f4b58033 (patch)
tree014b9f2c763711a52c21540ea49845d0ab497e01 /arch/microblaze/include/asm/prom.h
parentof: merge of_node_*_flag() and set_node_proc_entry() (diff)
downloadlinux-b6caf2ad7ce30648b89c1cf40d8f7cf6f4b58033.tar.xz
linux-b6caf2ad7ce30648b89c1cf40d8f7cf6f4b58033.zip
of: merge of_read_number() an of_read_ulong()
Merge common code between Microblaze and PowerPC 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/microblaze/include/asm/prom.h')
-rw-r--r--arch/microblaze/include/asm/prom.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/microblaze/include/asm/prom.h b/arch/microblaze/include/asm/prom.h
index 180d84481306..d4f57ffdae3f 100644
--- a/arch/microblaze/include/asm/prom.h
+++ b/arch/microblaze/include/asm/prom.h
@@ -82,18 +82,6 @@ extern int release_OF_resource(struct device_node *node, int index);
* OF address retreival & translation
*/
-/* Helper to read a big number; size is in cells (not bytes) */
-static inline u64 of_read_number(const u32 *cell, int size)
-{
- u64 r = 0;
- while (size--)
- r = (r << 32) | *(cell++);
- return r;
-}
-
-/* Like of_read_number, but we want an unsigned long result */
-#define of_read_ulong(cell, size) of_read_number(cell, size)
-
/* Translate an OF address block into a CPU physical address
*/
extern u64 of_translate_address(struct device_node *np, const u32 *addr);