aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-05-08 17:43:47 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-19 00:30:43 -0400
commit40f1ce7fb7e8b5d4d0821c0f3dc866cb1d47d99c (patch)
tree5a0f977967bb6353753b034bfb32ab11c8226d30 /arch/powerpc/include
parentbe135f40899cb3334faa7d2e27025055da311ec4 (diff)
powerpc: Remove ioremap_flags
We have a confusing number of ioremap functions. Make things just a bit simpler by merging ioremap_flags and ioremap_prot. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/io.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h
index 662d2edae768..45698d55cd6a 100644
--- a/arch/powerpc/include/asm/io.h
+++ b/arch/powerpc/include/asm/io.h
@@ -624,9 +624,8 @@ static inline void iosync(void)
624 * * ioremap is the standard one and provides non-cacheable guarded mappings 624 * * ioremap is the standard one and provides non-cacheable guarded mappings
625 * and can be hooked by the platform via ppc_md 625 * and can be hooked by the platform via ppc_md
626 * 626 *
627 * * ioremap_flags allows to specify the page flags as an argument and can 627 * * ioremap_prot allows to specify the page flags as an argument and can
628 * also be hooked by the platform via ppc_md. ioremap_prot is the exact 628 * also be hooked by the platform via ppc_md.
629 * same thing as ioremap_flags.
630 * 629 *
631 * * ioremap_nocache is identical to ioremap 630 * * ioremap_nocache is identical to ioremap
632 * 631 *
@@ -639,7 +638,7 @@ static inline void iosync(void)
639 * currently be hooked. Must be page aligned. 638 * currently be hooked. Must be page aligned.
640 * 639 *
641 * * __ioremap is the low level implementation used by ioremap and 640 * * __ioremap is the low level implementation used by ioremap and
642 * ioremap_flags and cannot be hooked (but can be used by a hook on one 641 * ioremap_prot and cannot be hooked (but can be used by a hook on one
643 * of the previous ones) 642 * of the previous ones)
644 * 643 *
645 * * __ioremap_caller is the same as above but takes an explicit caller 644 * * __ioremap_caller is the same as above but takes an explicit caller
@@ -650,11 +649,10 @@ static inline void iosync(void)
650 * 649 *
651 */ 650 */
652extern void __iomem *ioremap(phys_addr_t address, unsigned long size); 651extern void __iomem *ioremap(phys_addr_t address, unsigned long size);
653extern void __iomem *ioremap_flags(phys_addr_t address, unsigned long size, 652extern void __iomem *ioremap_prot(phys_addr_t address, unsigned long size,
654 unsigned long flags); 653 unsigned long flags);
655extern void __iomem *ioremap_wc(phys_addr_t address, unsigned long size); 654extern void __iomem *ioremap_wc(phys_addr_t address, unsigned long size);
656#define ioremap_nocache(addr, size) ioremap((addr), (size)) 655#define ioremap_nocache(addr, size) ioremap((addr), (size))
657#define ioremap_prot(addr, size, prot) ioremap_flags((addr), (size), (prot))
658 656
659extern void iounmap(volatile void __iomem *addr); 657extern void iounmap(volatile void __iomem *addr);
660 658