commit | bc2b204ca80bac454af02f29863f13e8eeb50513 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Oct 19 09:21:49 2024 -0600 |
committer | Simon Glass <sjg@chromium.org> | Sat Nov 02 11:13:59 2024 -0600 |
tree | fcd57ae86314f216f73748dbf935d4ebf47cddb2 | |
parent | c1d48560948bcc15bef262147f85a4fb42f6c008 [diff] |
dm: core: Add a function to see if a device exists All the uclass functions for finding a device end up creating a uclass if it doesn't exist. Add a function which instead returns NULL in this case. This is useful when in the 'unbind' path, since we don't want to undo any unbinding which has already happened. Signed-off-by: Simon Glass <sjg@chromium.org>