of/promtree: add package-to-path support to pdt
authorAndres Salomon <dilinger@queued.net>
Mon, 11 Oct 2010 03:52:57 +0000 (21:52 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 13 Oct 2010 03:58:08 +0000 (21:58 -0600)
commite2f2a93b6384cfe0face0be595bfbda1475d864b
treef379fda9976cba42f3fccb0bcbac71312db869d3
parented41850298f7a55519de0b8573e217ed8a45c199
of/promtree: add package-to-path support to pdt

package-to-path is a PROM function which tells us the real (full) name of the
node.  This provides a hook for that in the prom ops struct, and makes use
of it in the pdt code when attempting to determine a node's name.  If the
hook is available, try using it (falling back to looking at the "name"
property if it fails).

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/pdt.c
include/linux/of_pdt.h