commit | f33663dcaf54dc75a998dc0a9f4fe77775628c97 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Apr 19 07:20:58 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Apr 22 11:13:17 2015 -0600 |
tree | 250495e7f5848a94c9fc65ca2012681bbe19add7 | |
parent | c917772b6b552332b97f8154863040cdec32bf04 [diff] |
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>