arm/xen: Correctly check if the event channel interrupt is present
authorJulien Grall <julien.grall@linaro.org>
Wed, 6 May 2015 14:09:06 +0000 (14:09 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 28 May 2015 11:23:10 +0000 (12:23 +0100)
commit81e863c3a28e69fd60411bde9f779b0f8ad0212a
tree02516881b40ace1d990621faf2c3b10d68993c27
parentba155e2d21f6bf05de86a78dbe5bfd8757604a65
arm/xen: Correctly check if the event channel interrupt is present

The function irq_of_parse_and_map returns 0 when the IRQ is not found.

Futhermore, move the check before notifying the user that we are running on
Xen.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
arch/arm/xen/enlighten.c