]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty/serial: fix generic earlycon option parsing
authorRob Herring <robh@kernel.org>
Thu, 1 May 2014 00:48:29 +0000 (19:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 22:16:38 +0000 (18:16 -0400)
commite26f1db9b8d74617519e50b41749900d0a257406
tree08b42567dad09bafa4ce81d18d9e4c4368dc4157
parentfe1cf8af918af3ff0dd58ce92e5a5da117cb1d92
tty/serial: fix generic earlycon option parsing

Commit 9aac5887595 (tty/serial: add generic serial earlycon) moved
console option parsing from 8250_early.c and converted to kstrto*
functions from simple_strtoul along the way. However, kstrto* functions
are not equivalent in that they do not allow non-convertible characters
at the end such as "115200n8". Fix this by changing back to
simple_strtoul and ignore what checkpatch.pl says.

Reported-by: Yinghai Lu <yinghai@kernel.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: linux-serial@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/earlycon.c