[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5271B83C.50807@asianux.com>
Date: Thu, 31 Oct 2013 09:54:04 +0800
From: Chen Gang <gang.chen@...anux.com>
To: Jonas Bonn <jonas@...thpole.se>
CC: linux@...ts.openrisc.net,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] openrisc: include: asm: define empty SERIAL_PORT_DFNS in
serial.h
For some architectures (e.g. openrisc, arc), BASE_BAUD isn't constant
And SERIAL_PORT_DFNS always use BASE_BAUND, and also all drivers use
SERIAL_PORT_DFNS to initialize static variables, statically.
So need define SERIAL_PORT_DFNS as empty to tell drivers they don't
support SERIAL_PORT_DFNS (mostly like frv and parisc did).
Signed-off-by: Chen Gang <gang.chen@...anux.com>
---
arch/openrisc/include/asm/serial.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/openrisc/include/asm/serial.h b/arch/openrisc/include/asm/serial.h
index 270a452..254d1ad 100644
--- a/arch/openrisc/include/asm/serial.h
+++ b/arch/openrisc/include/asm/serial.h
@@ -31,6 +31,8 @@
#define BASE_BAUD (cpuinfo.clock_frequency/16)
+#define SERIAL_PORT_DFNS
+
#endif /* __KERNEL__ */
#endif /* __ASM_OPENRISC_SERIAL_H */
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists