arm/timer: fix panic when booting with DT
authorShannon Zhao <shannon.zhao@linaro.org>
Fri, 4 Mar 2016 15:45:52 +0000 (16:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Mar 2016 15:45:52 +0000 (16:45 +0100)
commit1bd52e1fd66c47af690124d74d11ccb271c96f6b
tree9f787701a881a8d3c5a8248d45b0c80fa15624c6
parent0e0f7d9e1aed668c5746bab54d65ccf1deaa3cea
arm/timer: fix panic when booting with DT

While to support ACPI, patch "arm/acpi: Parse GTDT to initialize timer"
refactors the functions preinit_xen_time and init_xen_time. But it
wrongly moves the platform_get_irq from init_xen_time to
preinit_dt_xen_time and this will cause booting failure.

So move platform_get_irq back to init_xen_time to fix it.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/arm/time.c