[PATCH] of/flattree: Add of_flat_dt_match() helper function

2010-12-31 Thread Grant Likely
This patch adds of_flat_dt_match() which tests a node for compatibility with a list of values and converts the relevant powerpc platform code to use it. This approach simplifies the board support code a bit. Signed-off-by: Grant Likely --- arch/powerpc/platforms/40x/ppc40x_simple.c| 13 ++

[PATCH] macintosh: wrong test in fan_{read,write}_reg()

2010-12-31 Thread roel kluin
Fix error test in fan_{read,write}_reg() Signed-off-by: Roel Kluin --- drivers/macintosh/therm_pm72.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ENODEV and EIO are positive (22 and 8), so the tests did not work. diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh

Re: [PATCH] of/flattree: Add of_flat_dt_match() helper function

2010-12-31 Thread Stephen Neuendorffer
On Fri, Dec 31, 2010 at 1:15 AM, Grant Likely wrote: > This patch adds of_flat_dt_match() which tests a node for > compatibility with a list of values and converts the relevant powerpc > platform code to use it. This approach simplifies the board support > code a bit. > > Signed-off-by: Grant Lik

Re: PMU_IOC_SLEEP failed

2010-12-31 Thread Benjamin Herrenschmidt
On Wed, 2010-12-29 at 00:35 +0100, jjDaNiMoTh wrote: > >> (dmesg..) > >> [...] > >> radeonfb_pci_register BEGIN > >> radeonfb :00:10.0: BAR 0: can't reserve [mem > 0xb800-0xbfff pref] > >> radeonfb (:00:10.0): cannot request region 0. > >> radeonfb: probe of :00:10.0 failed with

Re: [PATCH] of/flattree: Add of_flat_dt_match() helper function

2010-12-31 Thread Grant Likely
On Fri, Dec 31, 2010 at 07:59:02AM -0800, Stephen Neuendorffer wrote: > On Fri, Dec 31, 2010 at 1:15 AM, Grant Likely > wrote: > > > This patch adds of_flat_dt_match() which tests a node for > > compatibility with a list of values and converts the relevant powerpc > > platform code to use it. Th