commit | f66139f5e891cf6aaaf18cc7c9c1caf552a2b476 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Oct 19 09:21:49 2024 -0600 |
committer | Tom Rini <trini@konsulko.com> | Sun Nov 03 21:27:12 2024 -0600 |
tree | 60492674ad4706c755befa65e5ccfe9250a17c86 | |
parent | bccf6d0479f1c8a60e03388e444d52d85a541481 [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>