qe_lib: Remove immrbar_virt_to_phys() function
PATCH 2/2 qe_lib: Remove immrbar_virt_to_phys() function
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.
---
include/asm-powerpc/immap_qe.h +0 -0
@@ -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 */