linux-mips
[Top] [All Lists]

[PATCH] MIPS: Alchemy: fix build with SERIAL_8250=n

To: Linux-MIPS <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: Alchemy: fix build with SERIAL_8250=n
From: Manuel Lauss <manuel.lauss@googlemail.com>
Date: Mon, 25 Oct 2010 12:36:32 +0200
Cc: Manuel Lauss <manuel.lauss@googlemail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=3w0YjTSWAa4CrtmKg1ff7ExyyhB7owe0ROZzqWjGy5o=; b=DQJ3yR1P4R7ClFBwR+0nonX7/JlqXsVo/wyGTBkCDfqvb1GSw9jigVTKbb0mZVkJVi Gq/3pu9eWtIalfzCleRDoFrZKbAOEVGk7L3SN3nbDuv5A7OgtpOjOgjhLQUPANdxMiCd wASVYtJvqgLAE0lhlQCsTO7790pBcSKygIpig=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=MWkNMI1g+VTxFWqjdamaw0yIUw/6bpZUhoauUlTIMQ3munfwCnsFPA2/jDqjtf2x43 Re26/ugqhcnC3rZGbDSg4pxjO+7i25K2xvhD63Jymia56KmroNCjlU0KegfAL2MkKkhm zkUyCedM4s7IQaXVwEzaGZiBlFJgq+mC28kBg=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
In commit 7d172bfefb72a8dae56beff326299c5e21f6f6db I introduced platform
PM methods which call a function of the 8250 driver;  this patch works
around link failures when the kernel isn't built with 8250 support.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
---
 arch/mips/alchemy/common/platform.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mips/alchemy/common/platform.c 
b/arch/mips/alchemy/common/platform.c
index 3691630..9e7814d 100644
--- a/arch/mips/alchemy/common/platform.c
+++ b/arch/mips/alchemy/common/platform.c
@@ -27,6 +27,7 @@
 static void alchemy_8250_pm(struct uart_port *port, unsigned int state,
                            unsigned int old_state)
 {
+#ifdef CONFIG_SERIAL_8250
        switch (state) {
        case 0:
                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,
                serial8250_do_pm(port, state, old_state);
                break;
        }
+#endif
 }
 
 #define PORT(_base, _irq)                                      \
-- 
1.7.3.2


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: Alchemy: fix build with SERIAL_8250=n, Manuel Lauss <=