Skip to content

Commit

Permalink
powerpc: Fix build on some non-freescale platforms
Browse files Browse the repository at this point in the history
Commit 9deaa53 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>
  • Loading branch information
Benjamin Herrenschmidt committed Jan 25, 2012
1 parent f7ea82b commit 3493c85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/legacy_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3493c85

Please sign in to comment.