summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2016-01-17 00:23:41 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 07:07:37 +0100
commit05d961320ba624c98b16d72b32f947307674b341 (patch)
treef67a57f0a7d8152957461434cf9c4169f48374f4 /drivers/of
parentserial: earlycon: Fixup earlycon console name and index (diff)
downloadlinux-05d961320ba624c98b16d72b32f947307674b341.tar.xz
linux-05d961320ba624c98b16d72b32f947307674b341.zip
of: earlycon: Fixup earlycon console name and index
Use the console name embedded in the OF earlycon table by the OF_EARLYCON_DECLARE() macro to initialize the struct console 'name' and 'index' fields. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 168611867611..ec1459517de6 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -838,7 +838,7 @@ static int __init early_init_dt_scan_chosen_serial(void)
if (addr == OF_BAD_ADDR)
return -ENXIO;
- of_setup_earlycon(addr, match->setup);
+ of_setup_earlycon(addr, match);
return 0;
}
return -ENODEV;