From: Simon Glass Date: Mon, 15 Mar 2021 05:11:24 +0000 (+1300) Subject: sandbox: Correct uninit conflict X-Git-Tag: v2021.10~246^2~3^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c119528a1dd0ac719040d234c0a368a0ebaeb745;p=platform%2Fkernel%2Fu-boot.git sandbox: Correct uninit conflict It is not possible to remove the state before driver model is uninited, since the devices are allocated in the memory buffer. Also it is not possible to uninit driver model afterwards, since the RAM has been freed. Drop the uninit altogether, since it is not actually necessary. Signed-off-by: Simon Glass --- diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index edd48e2..48636ab 100644 --- a/arch/sandbox/cpu/cpu.c +++ b/arch/sandbox/cpu/cpu.c @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include @@ -17,7 +16,6 @@ #include #include #include -#include DECLARE_GLOBAL_DATA_PTR; @@ -34,10 +32,8 @@ void sandbox_exit(void) { /* Do this here while it still has an effect */ os_fd_restore(); - if (state_uninit()) - os_exit(2); - if (dm_uninit()) + if (state_uninit()) os_exit(2); /* This is considered normal termination for now */