powerpc: Fix build on some non-freescale platforms
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 25 Jan 2012 02:33:22 +0000 (13:33 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 25 Jan 2012 02:33:22 +0000 (13:33 +1100)
Commit 9deaa53ac7fa373623123aa4f18828dd62292b1a broke build
on platforms that use legacy_serial.c without also having
CONFIG_SERIAL_8250_FSL enabled due to an unconditional code
to a routine in that module.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/legacy_serial.c

index 3fea3689527e963955f802ac7abf2a8471ddfd24..bedd12e1cfbcc0b636eea99f1ca18728938ed2f4 100644 (file)
@@ -442,8 +442,10 @@ static void __init fixup_port_irq(int index,
 
        port->irq = virq;
 
+#ifdef CONFIG_SERIAL_8250_FSL
        if (of_device_is_compatible(np, "fsl,ns16550"))
                port->handle_irq = fsl8250_handle_irq;
+#endif
 }
 
 static void __init fixup_port_pio(int index,