of/fdt: fix error checking for earlycon address
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 23 Oct 2015 11:47:20 +0000 (20:47 +0900)
committerRob Herring <robh@kernel.org>
Tue, 27 Oct 2015 20:52:29 +0000 (15:52 -0500)
commit3f5ceec96470050d20d7281d49985e3b1cfc3995
tree96120b89056d141f2a0e4ed43c730ca3030117ee
parent001cf5048e99df7ddac2716ee9958083488b6071
of/fdt: fix error checking for earlycon address

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: fb11ffe74c79 ("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>
drivers/of/fdt.c