mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
drivers: core: nullify gd->dm_root after dm_uninit()
To reset the DM after a new dtb is loaded, we need to call dm_uninit() and then dm_init(). This fails however because gd->dm_root is not nullified by dm_uninit(). Fixing it by setting gd->dm_root in dm_uninit(). Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
85e51be9fb
commit
c483f4cec0
1 changed files with 1 additions and 0 deletions
|
@ -187,6 +187,7 @@ int dm_uninit(void)
|
|||
{
|
||||
device_remove(dm_root(), DM_REMOVE_NORMAL);
|
||||
device_unbind(dm_root());
|
||||
gd->dm_root = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue