From: David Daney Date: Sat, 24 Jul 2010 01:41:44 +0000 (-0700) Subject: MIPS: Octeon: Export prom_putchar(). X-Git-Tag: v2.6.36-rc1~563^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea435464a14af37b9384e96b2f5a1f76a605b048;p=platform%2Fupstream%2Fkernel-adaptation-pc.git MIPS: Octeon: Export prom_putchar(). The forthcoming watchdog driver will use it. Signed-off-by: David Daney To: linux-mips@linux-mips.org To: wim@iguana.be Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1499/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index 7216fbd..041326e 100644 --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c @@ -687,7 +687,10 @@ void __init plat_mem_setup(void) "cvmx_bootmem_phy_alloc\n"); } - +/* + * Emit one character to the boot UART. Exported for use by the + * watchdog timer. + */ int prom_putchar(char c) { uint64_t lsrval; @@ -701,6 +704,7 @@ int prom_putchar(char c) cvmx_write_csr(CVMX_MIO_UARTX_THR(octeon_uart), c & 0xffull); return 1; } +EXPORT_SYMBOL(prom_putchar); void prom_free_prom_memory(void) {