xen/arm: Use dt_device_match to avoid multiple if conditions
authorJulien Grall <julien.grall@linaro.org>
Fri, 13 Sep 2013 12:49:18 +0000 (13:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 17 Sep 2013 14:28:18 +0000 (15:28 +0100)
commitd90abf9aa6aea90f2ffe402ca3bad8e6fdb9ef1b
tree7a9b8da8e525ad47b179aa00b33b4bdd506e9b53
parent34743911e7a49f424fc2e92b5148e411aae8e71c
xen/arm: Use dt_device_match to avoid multiple if conditions

There is some place in Xen ARM code where multiple if conditions is used
check the presence of a node or find a node.
These pieces of code can be replace by an array and using proper device tree
helpers.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain_build.c
xen/arch/arm/time.c
xen/include/asm-arm/time.h