Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

immrbar_virt_to_phys() is not used anymore

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Li Yang <pku.leo@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>

authored by

Christophe Leroy and committed by
Scott Wood
b54ea82f 8b8642af

+1 -22
+1 -3
drivers/soc/fsl/qe/qe.c
··· 66 66 67 67 static phys_addr_t qebase = -1; 68 68 69 - phys_addr_t get_qe_base(void) 69 + static phys_addr_t get_qe_base(void) 70 70 { 71 71 struct device_node *qe; 72 72 int ret; ··· 89 89 90 90 return qebase; 91 91 } 92 - 93 - EXPORT_SYMBOL(get_qe_base); 94 92 95 93 void qe_reset(void) 96 94 {
-19
include/soc/fsl/qe/immap_qe.h
··· 464 464 } __attribute__ ((packed)); 465 465 466 466 extern struct qe_immap __iomem *qe_immr; 467 - extern phys_addr_t get_qe_base(void); 468 - 469 - /* 470 - * Returns the offset within the QE address space of the given pointer. 471 - * 472 - * Note that the QE does not support 36-bit physical addresses, so if 473 - * get_qe_base() returns a number above 4GB, the caller will probably fail. 474 - */ 475 - static inline phys_addr_t immrbar_virt_to_phys(void *address) 476 - { 477 - void *q = (void *)qe_immr; 478 - 479 - /* Is it a MURAM address? */ 480 - if ((address >= q) && (address < (q + QE_IMMAP_SIZE))) 481 - return get_qe_base() + (address - q); 482 - 483 - /* It's an address returned by kmalloc */ 484 - return virt_to_phys(address); 485 - } 486 467 487 468 #endif /* __KERNEL__ */ 488 469 #endif /* _ASM_POWERPC_IMMAP_QE_H */