of/fdt: Add endianness helper function for early init code
authorKevin Cernekee <cernekee@gmail.com>
Thu, 9 Apr 2015 20:05:15 +0000 (13:05 -0700)
committerRob Herring <robh@kernel.org>
Wed, 15 Apr 2015 00:35:44 +0000 (19:35 -0500)
commitcc7837867a559feba70fdf68eb53c24a84e3712f
tree109ba477dbe16219c56245b46e0908d78aa4a583
parent37786c7fee40771d13901de129af7e084ed48b55
of/fdt: Add endianness helper function for early init code

Provide a libfdt-based equivalent for of_device_is_big_endian(), suitable
for use in the early_init_* functions.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c
include/linux/of_fdt.h