* [PATCH 2/2] qe_lib: Remove immrbar_virt_to_phys() function
@ 2006-10-31 9:53 Li Yang
0 siblings, 0 replies; only message in thread
From: Li Yang @ 2006-10-31 9:53 UTC (permalink / raw)
To: Paul; +Cc: linuxppc-dev
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@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 */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-31 9:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31 9:53 [PATCH 2/2] qe_lib: Remove immrbar_virt_to_phys() function Li Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.