Commit b54ea82f authored by Christophe Leroy's avatar Christophe Leroy Committed by Scott Wood

soc/fsl/qe: get rid of immrbar_virt_to_phys()

immrbar_virt_to_phys() is not used anymore
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Acked-by: default avatarLi Yang <pku.leo@gmail.com>
Signed-off-by: default avatarScott Wood <oss@buserror.net>
parent 8b8642af
...@@ -66,7 +66,7 @@ static unsigned int qe_num_of_snum; ...@@ -66,7 +66,7 @@ static unsigned int qe_num_of_snum;
static phys_addr_t qebase = -1; static phys_addr_t qebase = -1;
phys_addr_t get_qe_base(void) static phys_addr_t get_qe_base(void)
{ {
struct device_node *qe; struct device_node *qe;
int ret; int ret;
...@@ -90,8 +90,6 @@ phys_addr_t get_qe_base(void) ...@@ -90,8 +90,6 @@ phys_addr_t get_qe_base(void)
return qebase; return qebase;
} }
EXPORT_SYMBOL(get_qe_base);
void qe_reset(void) void qe_reset(void)
{ {
if (qe_immr == NULL) if (qe_immr == NULL)
......
...@@ -464,25 +464,6 @@ struct qe_immap { ...@@ -464,25 +464,6 @@ struct qe_immap {
} __attribute__ ((packed)); } __attribute__ ((packed));
extern struct qe_immap __iomem *qe_immr; extern struct qe_immap __iomem *qe_immr;
extern phys_addr_t get_qe_base(void);
/*
* Returns the offset within the QE address space of the given pointer.
*
* Note that the QE does not support 36-bit physical addresses, so if
* get_qe_base() returns a number above 4GB, the caller will probably fail.
*/
static inline phys_addr_t immrbar_virt_to_phys(void *address)
{
void *q = (void *)qe_immr;
/* Is it a MURAM address? */
if ((address >= q) && (address < (q + QE_IMMAP_SIZE)))
return get_qe_base() + (address - q);
/* It's an address returned by kmalloc */
return virt_to_phys(address);
}
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_IMMAP_QE_H */ #endif /* _ASM_POWERPC_IMMAP_QE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment