From: Sebastian Siewior Date: Tue, 30 Nov 2010 23:54:46 +0000 (+0000) Subject: of/address: Use propper endianess in get_flags X-Git-Tag: v2.6.38-rc1~405^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982cf00412a890ca738c2d78528b652ca431ad1a;p=pandora-kernel.git 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 Acked-by: Benjamin Herrenschmidt Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed