]> git.baikalelectronics.ru Git - kernel.git/commit
of/address: Use propper endianess in get_flags
authorSebastian Siewior <bigeasy@linutronix.de>
Tue, 30 Nov 2010 23:54:46 +0000 (23:54 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 9 Dec 2010 04:36:30 +0000 (15:36 +1100)
commit50e9bf243d4e50e75e4230351ae9965ad368c80f
tree794ebad40110ab26fc2a490fd61bdad60a001605
parenta5cb1f30b46b01fd1c87322daa35f3af47913f89
of/address: Use propper endianess in get_flags

This patch changes u32 to __be32 for all "ranges", "prop" and "addr" and
such. Those variables are pointing to the device tree which containts
intergers in big endian format.
Most functions are doing it right because of_read_number() is doing the
right thing for them. of_bus_isa_get_flags(), of_bus_pci_get_flags() and
of_bus_isa_map() were accessing the data directly and were doing it wrong.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/prom.h
drivers/of/address.c
include/linux/of_address.h