xen/arm: Check if the device is available before using it
authorJulien Grall <julien.grall@linaro.org>
Fri, 13 Sep 2013 12:49:33 +0000 (13:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 17 Sep 2013 14:29:16 +0000 (15:29 +0100)
commit735d865183306c85c8ef8a16f8a82c48359e9bee
tree17b8d3ad0fd5533b0eeb0ab9488d20c5e196c463
parentc3cc9e6c4b5dfb6741b8751b608b5c872d829604
xen/arm: Check if the device is available before using it

It's possible to have a device description in the DTS but the device is not
wired.

device_init must check if the device is available before doing anything with
it.

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