]> git.baikalelectronics.ru Git - uboot.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)
commit087bca1182f0deeaf2cda73ac5e61538937f577b
tree504a99ea978c14b6b18c3bcd4b5ece3b0d4a5586
parent408524533955486458e43e2a627e7e506ede98e0
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