of/fdt: fix aliases with baudrate in earlycon
authorStefan Agner <stefan@agner.ch>
Sat, 10 Oct 2015 08:29:30 +0000 (01:29 -0700)
committerRob Herring <robh@kernel.org>
Tue, 13 Oct 2015 18:31:26 +0000 (13:31 -0500)
commit6296ad9e3375c6c1ddbb371f589ba6a145bb31df
treec6c7de57b7b0b6f1756d6386b23f17879e998424
parent191b77c3615b77cf77bdbca95fd98f71c0f191ff
of/fdt: fix aliases with baudrate in earlycon

Many boards use an alias in the stdout-path specification along
with console options after a colon (e.g. serial0:115200n8). When
using earlycon, this specification currently does not work. While
fdt_path_offset supports alias resolution, it does not remove the
console options by itself. Use the fdt_path_offset_namelen variant
and provide the length of the alias to enable aliases with console
options in the stdout-path.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c