of/flattree: Add of_flat_dt_match() helper function
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 30 Oct 2010 15:49:09 +0000 (11:49 -0400)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 1 Jan 2011 20:03:25 +0000 (13:03 -0700)
commita4f740cf33f7f6c164bbde3c0cdbcc77b0c4997c
tree62d061939000c65d91cf760a51509d388270f4c9
parent73930a85cf38d72851305fcf640c07b4c13aa405
of/flattree: Add of_flat_dt_match() helper function

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 <grant.likely@secretlab.ca>
Reviewed-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
arch/powerpc/platforms/40x/ppc40x_simple.c
arch/powerpc/platforms/512x/mpc5121_generic.c
arch/powerpc/platforms/52xx/lite5200.c
arch/powerpc/platforms/52xx/media5200.c
arch/powerpc/platforms/52xx/mpc5200_simple.c
arch/powerpc/platforms/83xx/mpc830x_rdb.c
arch/powerpc/platforms/83xx/mpc831x_rdb.c
arch/powerpc/platforms/83xx/mpc837x_rdb.c
arch/powerpc/platforms/85xx/tqm85xx.c
drivers/of/fdt.c
include/linux/of_fdt.h