|
@@ -433,6 +433,7 @@ static int goldfish_tty_remove(struct platform_device *pdev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_GOLDFISH_TTY_EARLY_CONSOLE
|
|
|
static void gf_early_console_putchar(struct uart_port *port, int ch)
|
|
|
{
|
|
|
__raw_writel(ch, port->membase);
|
|
@@ -456,6 +457,7 @@ static int __init gf_earlycon_setup(struct earlycon_device *device,
|
|
|
}
|
|
|
|
|
|
OF_EARLYCON_DECLARE(early_gf_tty, "google,goldfish-tty", gf_earlycon_setup);
|
|
|
+#endif
|
|
|
|
|
|
static const struct of_device_id goldfish_tty_of_match[] = {
|
|
|
{ .compatible = "google,goldfish-tty", },
|