of/flattree: Make the kernel accept ePAPR style phandle information
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 2 Feb 2010 04:34:15 +0000 (21:34 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 9 Feb 2010 15:34:10 +0000 (08:34 -0700)
commit04b954a673dd02f585a2769c4945a43880faa989
treea786421a31b92b9496bcf8937ce4e4ee592c8955
parent087f79c48c090a2c0cd9ee45231d63290d2036d2
of/flattree: Make the kernel accept ePAPR style phandle information

Currently when processing flattened device trees, the kernel expects
the phandle in a property called "linux,phandle".  The ePAPR spec -
not being Linux specific - instead requires phandles to be encoded in
a property named simply "phandle".  This patch makes the kernel accept
either form when unflattening the device tree.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/fdt.c