linux-mips
[Top] [All Lists]

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

To: Linux-MIPS <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH V2] MIPS: Alchemy: fix build with SERIAL_8250=n
From: Manuel Lauss <manuel.lauss@googlemail.com>
Date: Mon, 25 Oct 2010 18:44:11 +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=dEne5QOZ/rI4vUFg2Nr0bxvuzU3/pbZE6tjd+gZi804=; b=Ldp98VeWBui0NgKaXj+q11xIVVUFCBaGy6y/W06P9KSlAWbaCubHvYW5wA7gYjwdiX HWj7gkFi+wNpnOQNAljNPQFFJSTONzHMRl4f4bwevg/g9y99sWUM6zQYx+NV6iTCBy5+ NSSPxytDUXxaeo+6vgv56YcHsEdeLaThnaIy8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=Xec91M+dRhs/15dgbVDmDdXQGak4WsuB2+4yH1675xA52r6iksULLZ+s7NvZW9E/mq VQO6IB0DuZo+slsniHIDgAzKfyRmnZ6eBKa62FZqte+4EFZ7KZzByxRPN0T+n2DYUcFW IZ1qL/nkhiYQ0gmg+vxDMZbvS9M19zsV8TEtk=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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: Manuel Lauss <manuel.lauss@googlemail.com>
---
V2: added commit name to patch description as per Sergei's suggestion.

 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 V2] MIPS: Alchemy: fix build with SERIAL_8250=n, Manuel Lauss <=