serial: earlycon: Refactor earlycon registration
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 9 Mar 2015 20:27:20 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 16:25:27 +0000 (17:25 +0100)
commit7c53cb3de493573dc3b7f2468a542a9f11cc5079
treee8eb44635ad1801c50d4e1c3fd277c083244109d
parent60846880384f00713c7f54243f749c1923e6c0e3
serial: earlycon: Refactor earlycon registration

Separate earlycon matching from registration; add register_earlycon
which initializes and registers the matched earlycon.

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