Skip to content

Commit

Permalink
[MIPS] Add missing ifdef arch/mips/pmc-sierra/yosemite/setup.c
Browse files Browse the repository at this point in the history
early_serial_setup is only defined when CONFIG_SERIAL_8250 is set.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Mathieu Desnoyers authored and Ralf Baechle committed Feb 6, 2007
1 parent 19487f1 commit 811d944
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/pmc-sierra/yosemite/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ static void __init py_map_ocd(void)

static void __init py_uart_setup(void)
{
#ifdef CONFIG_SERIAL_8250
struct uart_port up;

/*
Expand All @@ -188,6 +189,7 @@ static void __init py_uart_setup(void)

if (early_serial_setup(&up))
printk(KERN_ERR "Early serial init of port 0 failed\n");
#endif /* CONFIG_SERIAL_8250 */
}

static void __init py_rtc_setup(void)
Expand Down

0 comments on commit 811d944

Please sign in to comment.