serial/arc: Enable DT based earlycon
authorVineet Gupta <Vineet.Gupta1@synopsys.com>
Tue, 24 Jun 2014 08:25:14 +0000 (13:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:45:30 +0000 (15:45 -0700)
This allows a param less earlycon to pick up the earlyconsole from
chosen/stdout-path

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/arc_uart.c

index 3b5285373658354dd5bedace08a83d41d9cbcc5b..3a504fb9c9e8f258a1ac49abd3656d79608aee71 100644 (file)
@@ -571,6 +571,7 @@ static int __init arc_early_console_setup(struct earlycon_device *dev,
        return 0;
 }
 EARLYCON_DECLARE(arc_uart, arc_early_console_setup);
+OF_EARLYCON_DECLARE(arc_uart, "snps,arc-uart", arc_early_console_setup);
 
 #endif /* CONFIG_SERIAL_ARC_CONSOLE */