From: Andres Salomon Date: Mon, 11 Oct 2010 03:49:45 +0000 (-0600) Subject: of/promtree: no longer call prom_ functions directly; use an ops structure X-Git-Tag: v2.6.37-rc1~129^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f90c34bd658d240cb5ebc5fe0a17796e590c6ec8;p=pandora-kernel.git 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 Acked-by: David S. Miller Signed-off-by: Grant Likely --- Reading git-diff-tree failed