serial: earlycon: Skip parse_options() if empty string
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 9 Mar 2015 20:27:19 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 16:25:27 +0000 (17:25 +0100)
commitc7df17f10a5d450fb5de9449d33546bc9a911275
treeddc81cce43db0e3b4836d1b52d5d825d116a22aa
parentc477ed7c92ff8a47e7d015198b016f0d8ac45c29
serial: earlycon: Skip parse_options() if empty string

Earlycon param strings of the form
   earlycon=<name>
are rejected from parse_options() with an error (which, in turn,
results in a NULL argument for the setup() method options parameter).

Only pass non-empty string to parse_options(); this will enable
handling actual parse errors differently than expected and allow
formats.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/earlycon.c