]> git.baikalelectronics.ru Git - kernel.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)
commitc435b30aea0232969985f0ba1b16c10a7534f18e
tree08b42567dad09bafa4ce81d18d9e4c4368dc4157
parent34cba271eb7f32e1c16e0f659bc07bc93f7a105f
tty/serial: fix generic earlycon option parsing

Commit 4dcd120a3fc (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