diff options
| author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-02-07 04:05:11 -0500 |
|---|---|---|
| committer | Scott Wood <oss@buserror.net> | 2017-04-30 02:26:54 -0400 |
| commit | b54ea82f01282253c85eb7e2fd2b6c96f7a027d8 (patch) | |
| tree | 5b9666808afb2bcc279cee0abea8f8ff369a1b2a /include/soc | |
| parent | 8b8642af15ed14b9a7a34d3401afbcc274533e13 (diff) | |
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>
Diffstat (limited to 'include/soc')
| -rw-r--r-- | include/soc/fsl/qe/immap_qe.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/soc/fsl/qe/immap_qe.h b/include/soc/fsl/qe/immap_qe.h index c76ef30b05ba..7baaabd5ec2c 100644 --- a/include/soc/fsl/qe/immap_qe.h +++ b/include/soc/fsl/qe/immap_qe.h | |||
| @@ -464,25 +464,6 @@ struct qe_immap { | |||
| 464 | } __attribute__ ((packed)); | 464 | } __attribute__ ((packed)); |
| 465 | 465 | ||
| 466 | extern struct qe_immap __iomem *qe_immr; | 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 | #endif /* __KERNEL__ */ | 468 | #endif /* __KERNEL__ */ |
| 488 | #endif /* _ASM_POWERPC_IMMAP_QE_H */ | 469 | #endif /* _ASM_POWERPC_IMMAP_QE_H */ |
