From: Eugene Konev Date: Sun, 30 Sep 2007 03:15:24 +0000 (+0000) Subject: don't enable rts/cts by default (thanks nabcore, #2400) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4e6f272ba176796239599b699ce29cea258bee90;p=openwrt%2Fstaging%2Fstintel.git don't enable rts/cts by default (thanks nabcore, #2400) SVN-Revision: 9078 --- 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 }