Skip to contentSkip to conversation

openrisc: include: asm: define empty SERIAL_PORT_DFNS in serial.h

PATCH In review Chen Gang 1 participant 2 messages Oct 31, 2013 Openrisc architecture

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 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).

---
 arch/openrisc/include/asm/serial.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/openrisc/include/asm/serial.h +2 -0
index 270a452..254d1ad 100644
@@ -31,6 +31,8 @@
 
 #define BASE_BAUD (cpuinfo.clock_frequency/16)
 
+#define SERIAL_PORT_DFNS
+
 #endif /* __KERNEL__ */
 
 #endif /* __ASM_OPENRISC_SERIAL_H */
Signature · 1 line
1.7.7.6
author
#1 lore raw
Quoted 19 lines · Chen Gang

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).

---
 arch/openrisc/include/asm/serial.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/openrisc/include/asm/serial.h +0 -0
index 270a452..254d1ad 100644

arch/openrisc/include/asm/serial.h line 38

Quoted 8 lines
arch/openrisc/include/asm/serial.h +2 -0
@@ -31,6 +31,8 @@
 
 #define BASE_BAUD (cpuinfo.clock_frequency/16)
 
+#define SERIAL_PORT_DFNS
+
 #endif /* __KERNEL__ */
 
 #endif /* __ASM_OPENRISC_SERIAL_H */

Oh, sorry, this patch is incorrect, need fix within the driver.

Thanks.

Signature · 1 line
Chen Gang