]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Handle recursive unbinding of uclass devices
authorSimon Glass <sjg@chromium.org>
Sun, 19 Apr 2015 13:20:58 +0000 (07:20 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Apr 2015 17:13:17 +0000 (11:13 -0600)
commit07d260e047680971d926bc9a573f9291f39fc988
tree250495e7f5848a94c9fc65ca2012681bbe19add7
parenta7b8250210cd1b449a06f7d20769944ebeca1a41
dm: core: Handle recursive unbinding of uclass devices

Since a device can have children in the same uclass as itself, we need
to handle unbinding carefully: we must allow that unbinding a device in a
uclass may cause another device in the same uclass to be unbound.

Adjust the code to cope.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/core/uclass.c