[PATCH 2/2] qe_lib: Remove immrbar_virt_to_phys() function

Li Yang leoli at freescale.com
Tue Oct 31 20:53:44 EST 2006


Remove private address mapping function immrbar_virt_to_phys() as it can be
replaced by kernel generic API like iopa().  iopa() had problem dealing with
area mapped by io_block_mapping().  It's now working as all io spaces are mapped
by ioremap().  Users of this function should change to use generic functions.

Signed-off-by: Li Yang <leoli at freescale.com>
---
diff --git a/include/asm-powerpc/immap_qe.h b/include/asm-powerpc/immap_qe.h
index ce12f85..7cccd16 100644
--- a/include/asm-powerpc/immap_qe.h
+++ b/include/asm-powerpc/immap_qe.h
@@ -464,14 +464,5 @@ struct qe_immap {
 extern struct qe_immap *qe_immr;
 extern phys_addr_t get_qe_base(void);
 
-static inline unsigned long immrbar_virt_to_phys(volatile void * address)
-{
-	if ( ((u32)address >= (u32)qe_immr) &&
-			((u32)address < ((u32)qe_immr + QE_IMMAP_SIZE)) )
-		return (unsigned long)(address - (u32)qe_immr +
-				(u32)get_qe_base());
-	return (unsigned long)virt_to_phys(address);
-}
-
 #endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_IMMAP_QE_H */




More information about the Linuxppc-dev mailing list