of: Fix phandle endian issues
authorGrant Likely <grant.likely@secretlab.ca>
Fri, 23 Jul 2010 07:48:25 +0000 (01:48 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 24 Jul 2010 22:51:52 +0000 (16:51 -0600)
commit9a6b2e588c7809e86161236da3d29581bf5f8402
tree0aebb8e868615a2354042a376405cd73d80ef19e
parent883c2cfc8bcc0fd00c5d9f596fb8870f481b5bda
of: Fix phandle endian issues

The flat tree code wasn't fixing the endianness on phandle values when
unflattening the tree, and the code in drivers/of wasn't always doing a
be32_to_cpu before trying to dereference the phandle values.  This patch
fixes them.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/base.c
drivers/of/fdt.c
drivers/of/irq.c