of/promtree: no longer call prom_ functions directly; use an ops structure
commitf90c34bd658d240cb5ebc5fe0a17796e590c6ec8
authorAndres Salomon <dilinger@queued.net>
Mon, 11 Oct 2010 03:49:45 +0000 (10 21:49 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 13 Oct 2010 03:57:53 +0000 (12 21:57 -0600)
tree02e8243910e156d3af4a14bd9be63dd829d07576
parent3cfc535c5df8122af1258ae05aaf2770c033425d
of/promtree: no longer call prom_ functions directly; use an ops structure

Rather than assuming an architecture defines prom_getchild and friends,
define an ops struct with hooks for the various prom functions that
pdt.c needs.  This ops struct is filled in by the
arch-(and sometimes firmware-)specific code, and passed to
of_pdt_build_devicetree.

Update sparc code to define the ops struct as well.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/sparc/kernel/prom_common.c
drivers/of/pdt.c
include/linux/of_pdt.h