]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
of/address: use proper endianess in get_flags
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 1 Dec 2010 09:54:46 +0000 (10:54 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 23 Dec 2010 22:57:48 +0000 (15:57 -0700)
commit0131d8973c8b9bd9d40fee8fae24eab24821efdb
treeb93d26d817590139d7ee832d8915752bf99e8fb6
parent710fc04da1abe48a33d54afb1ba33dbeceafb6e1
of/address: use proper 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 contains
integers 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: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/include/asm/prom.h
drivers/of/address.c
include/linux/of_address.h