Skip to contentSkip to conversation

powerpc/440: Fix warning early debug code

PATCH New Benjamin Herrenschmidt 1 participant 1 message Jun 17, 2009 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 powerpc/440: Fix warning early debug code

The function udbg_44x_as1_flush() has the wrong prototype causing a warning when enabling 440 early debug.

---

 arch/powerpc/kernel/udbg_16550.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/udbg_16550.c +1 -1
@@ -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)