aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Konev <ejka@openwrt.org>2007-09-30 03:15:24 +0000
committerEugene Konev <ejka@openwrt.org>2007-09-30 03:15:24 +0000
commit01c698b64973be32f66d38a9939d7c170e7c2cee (patch)
tree6cf58e80c3abcbea9d84346692c2d23869715207
parent5071febc67dcba29310db8a8d64e54cd9a453ea6 (diff)
downloadupstream-01c698b64973be32f66d38a9939d7c170e7c2cee.tar.gz
upstream-01c698b64973be32f66d38a9939d7c170e7c2cee.tar.bz2
upstream-01c698b64973be32f66d38a9939d7c170e7c2cee.zip
don't enable rts/cts by default (thanks nabcore, #2400)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9078 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/prom.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/ar7/files/arch/mips/ar7/prom.c b/target/linux/ar7/files/arch/mips/ar7/prom.c
index a560c551c2..65fe0c0f9d 100644
--- a/target/linux/ar7/files/arch/mips/ar7/prom.c
+++ b/target/linux/ar7/files/arch/mips/ar7/prom.c
@@ -247,11 +247,13 @@ static void __init console_config(void)
parity = 'n';
if (bits != '7' && bits != '8')
bits = '8';
- if (flow == '\0')
- flow = 'r';
- sprintf(console_string, " console=ttyS0,%d%c%c%c", baud,
- parity, bits, flow);
+ if (flow == 'r')
+ sprintf(console_string, " console=ttyS0,%d%c%c%c", baud,
+ parity, bits, flow);
+ else
+ sprintf(console_string, " console=ttyS0,%d%c%c", baud, parity,
+ bits);
strcat(prom_getcmdline(), console_string);
#endif
}