aboutsummaryrefslogtreecommitdiff
path: root/drivers/xen
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-11-28 10:43:14 +0200
committerTom Rini <trini@konsulko.com>2021-01-15 14:36:12 -0500
commiteb2825b79d1e029fa0b9e9ff35fe08c2eca8ca17 (patch)
tree5cacb986de8f06b2030518ec67fed80ec6374dba /drivers/xen
parent42d0d4223f991062f10d8b09e9268ed4cbcf271e (diff)
downloadu-boot-eb2825b79d1e029fa0b9e9ff35fe08c2eca8ca17.zip
u-boot-eb2825b79d1e029fa0b9e9ff35fe08c2eca8ca17.tar.gz
u-boot-eb2825b79d1e029fa0b9e9ff35fe08c2eca8ca17.tar.bz2
common: board_r: Drop initr_xen wrapper
Add a return value to xen_init and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/hypervisor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/xen/hypervisor.c b/drivers/xen/hypervisor.c
index 178c206..2560894 100644
--- a/drivers/xen/hypervisor.c
+++ b/drivers/xen/hypervisor.c
@@ -232,7 +232,7 @@ void clear_evtchn(uint32_t port)
synch_clear_bit(port, &s->evtchn_pending[0]);
}
-void xen_init(void)
+int xen_init(void)
{
debug("%s\n", __func__);
@@ -240,6 +240,8 @@ void xen_init(void)
init_events();
init_xenbus();
init_gnttab();
+
+ return 0;
}
void xen_fini(void)