diff --git a/drivers/core/root.c b/drivers/core/root.c index 4ce55f9cc890d1726f98f3048cd6aec24d03d60d..e6ec7faf3792c55b428923f71f2d73e46222a94d 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -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; }