Просмотр исходного кода

don't enable rts/cts by default (thanks nabcore, #2400)

SVN-Revision: 9078
Eugene Konev 18 лет назад
Родитель
Сommit
4e6f272ba1
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      target/linux/ar7/files/arch/mips/ar7/prom.c

+ 6 - 4
target/linux/ar7/files/arch/mips/ar7/prom.c

@@ -247,11 +247,13 @@ static void __init console_config(void)
 		parity = 'n';
 		parity = 'n';
 	if (bits != '7' && bits != '8')
 	if (bits != '7' && bits != '8')
 		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);
 	strcat(prom_getcmdline(), console_string);
 #endif
 #endif
 }
 }