linux/drivers/of/fdt.c
Masahiro Yamada c2187dc4bf of/fdt: fix error checking for earlycon address
commit 3f5ceec964 upstream.

fdt_translate_address() returns OF_BAD_ADDR on error.  It is defined as
a u64 value, so the variable "addr" should be defined as u64 as well.

Fixes: fb11ffe74c ("of/fdt: add FDT serial scanning for earlycon")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
2015-12-13 17:49:40 +00:00

1101 lines
28 KiB