]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Remove children before advising uclass
authorSimon Glass <sjg@chromium.org>
Sun, 24 Jan 2021 21:32:44 +0000 (14:32 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
commitb1f25fcfefc4c8e05f91d948f316c7bdbb4cd527
tree504a99ea978c14b6b18c3bcd4b5ece3b0d4a5586
parent4d7bab1adb1a8e3d5b30c5d19f1873dacc95bb93
dm: core: Remove children before advising uclass

At present the uclass pre-remove method is called before the children are
removed. But the children may refused to be removed, in whch case the
uclass is in a tricky situation. At present we handle this by calling
the uclass' post_probe() method. But it seems better to avoid doing
anything with the uclass in this case.

Switch the ordering so that we make sure the children can be removed
before advising the uclass.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device-remove.c