提交 cf745a39 编写于 作者: M Manuel Lauss 提交者: Ralf Baechle

MIPS: Alchemy: fix build with SERIAL_8250=n

In commit 7d172bfe ("Alchemy: Add UART PM methods") I introduced
platform PM methods which call a function of the 8250 driver;
this patch works around link failures when the kernel is built
without 8250 support.
Signed-off-by: NManuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/1737/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 a3aad4aa
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
static void alchemy_8250_pm(struct uart_port *port, unsigned int state, static void alchemy_8250_pm(struct uart_port *port, unsigned int state,
unsigned int old_state) unsigned int old_state)
{ {
#ifdef CONFIG_SERIAL_8250
switch (state) { switch (state) {
case 0: case 0:
if ((__raw_readl(port->membase + UART_MOD_CNTRL) & 3) != 3) { if ((__raw_readl(port->membase + UART_MOD_CNTRL) & 3) != 3) {
...@@ -49,6 +50,7 @@ static void alchemy_8250_pm(struct uart_port *port, unsigned int state, ...@@ -49,6 +50,7 @@ static void alchemy_8250_pm(struct uart_port *port, unsigned int state,
serial8250_do_pm(port, state, old_state); serial8250_do_pm(port, state, old_state);
break; break;
} }
#endif
} }
#define PORT(_base, _irq) \ #define PORT(_base, _irq) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册