summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/mpc512x
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-01-20 07:23:05 -0500
committerTom Rini <trini@konsulko.com>2016-01-25 10:39:45 -0500
commit0080931abfec5c25f76683e5b96b483416bd14f2 (patch)
tree6ee896193016a1a8e2e35cd64e9c6fea7d6eeac1 /arch/powerpc/cpu/mpc512x
parent8d4f11c2033d0621f22a1501d92616596a8d1a62 (diff)
downloadblackbird-obmc-uboot-0080931abfec5c25f76683e5b96b483416bd14f2.tar.gz
blackbird-obmc-uboot-0080931abfec5c25f76683e5b96b483416bd14f2.zip
serial: Remove serial_putc_raw_dev
clang-3.8 reports that serial_putc_raw_dev in serial_ns16550.c is unused. Further investigation shows that we have 3 places that implement this function and no callers, remove. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc512x')
-rw-r--r--arch/powerpc/cpu/mpc512x/serial.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/powerpc/cpu/mpc512x/serial.c b/arch/powerpc/cpu/mpc512x/serial.c
index 4105a28509..ac77ddcf4d 100644
--- a/arch/powerpc/cpu/mpc512x/serial.c
+++ b/arch/powerpc/cpu/mpc512x/serial.c
@@ -203,18 +203,6 @@ void serial_putc_dev(unsigned int idx, const char c)
out_8(&psc->tfdata_8, c);
}
-void serial_putc_raw_dev(unsigned int idx, const char c)
-{
- volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
- volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
-
- /* Wait for last character to go. */
- while (!(in_be16(&psc->psc_status) & PSC_SR_TXEMP))
- ;
-
- out_8(&psc->tfdata_8, c);
-}
-
void serial_puts_dev(unsigned int idx, const char *s)
{
while (*s)
OpenPOWER on IntegriCloud