diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-06-08 09:48:09 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-05 18:14:26 -0400 |
commit | 6b884a8d50a6eea2fb3dad7befe748f67193073b (patch) | |
tree | 85756fbd09ebaebdeb9a7ab56806bcbc5e793532 /arch/microblaze/kernel/prom_parse.c | |
parent | a7c194b007ec40a130207e9ace9cecf598fc6ac5 (diff) |
of/address: merge of_iomap()
Merge common code between Microblaze and PowerPC. This patch creates
new of_address.h and address.c files to containing address translation
and mapping routines. First routine to be moved it of_iomap()
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Michal Simek <monstr@monstr.eu>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/microblaze/kernel/prom_parse.c')
-rw-r--r-- | arch/microblaze/kernel/prom_parse.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/microblaze/kernel/prom_parse.c b/arch/microblaze/kernel/prom_parse.c index e28968fa34c1..1159ba52ad4a 100644 --- a/arch/microblaze/kernel/prom_parse.c +++ b/arch/microblaze/kernel/prom_parse.c | |||
@@ -681,14 +681,3 @@ const void *of_get_mac_address(struct device_node *np) | |||
681 | return NULL; | 681 | return NULL; |
682 | } | 682 | } |
683 | EXPORT_SYMBOL(of_get_mac_address); | 683 | EXPORT_SYMBOL(of_get_mac_address); |
684 | |||
685 | void __iomem *of_iomap(struct device_node *np, int index) | ||
686 | { | ||
687 | struct resource res; | ||
688 | |||
689 | if (of_address_to_resource(np, index, &res)) | ||
690 | return NULL; | ||
691 | |||
692 | return ioremap(res.start, 1 + res.end - res.start); | ||
693 | } | ||
694 | EXPORT_SYMBOL(of_iomap); | ||