Patchwork [2/2] powerpc/440: Fix warning early debug code

login
register
mail settings
Submitter Benjamin Herrenschmidt
Date June 17, 2009, 1:55 a.m.
Message ID <20090617015557.7ADA7DDDA1@ozlabs.org>
Download mbox | patch
Permalink /patch/28754/
State Accepted
Commit f694cda89250f38782a5fd0b2d32fe33a39dcf37
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Benjamin Herrenschmidt - June 17, 2009, 1:55 a.m.
The function udbg_44x_as1_flush() has the wrong prototype causing
a warning when enabling 440 early debug.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

 arch/powerpc/kernel/udbg_16550.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

--- linux-work.orig/arch/powerpc/kernel/udbg_16550.c	2009-06-17 11:52:05.000000000 +1000
+++ linux-work/arch/powerpc/kernel/udbg_16550.c	2009-06-17 11:52:08.000000000 +1000
@@ -219,7 +219,7 @@  void udbg_init_pas_realmode(void)
 #ifdef CONFIG_PPC_EARLY_DEBUG_44x
 #include <platforms/44x/44x.h>
 
-static int udbg_44x_as1_flush(void)
+static void udbg_44x_as1_flush(void)
 {
 	if (udbg_comport) {
 		while ((as1_readb(&udbg_comport->lsr) & LSR_THRE) == 0)