arm/xen: Correctly check if the event channel interrupt is present
authorJulien Grall <[email protected]>
Wed, 6 May 2015 14:09:06 +0000 (14:09 +0000)
committerDavid Vrabel <[email protected]>
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 <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
Acked-by: Ian Campbell <[email protected]>
arch/arm/xen/enlighten.c