board: xen: De-initialize before jumping to Linux

Free resources used by Xen board before jumping to Linux kernel.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Oleksandr Andrushchenko
2020-08-06 12:43:00 +03:00
committed by Tom Rini
parent 53d725c74e
commit d17f6698b8
3 changed files with 22 additions and 0 deletions

View File

@@ -242,3 +242,11 @@ void xen_init(void)
init_gnttab();
}
void xen_fini(void)
{
debug("%s\n", __func__);
fini_gnttab();
fini_xenbus();
fini_events();
}