commit | c0bcaaf9e5f865c117209ac5b3cc097aace647b2 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Oct 29 19:47:14 2022 -0600 |
committer | Simon Glass <sjg@chromium.org> | Mon Nov 07 16:24:30 2022 -0700 |
tree | 45cc31cf54eea520dce5bc5a681ba367bde074d7 | |
parent | 85ba7c3215d32e29be86bdb9d3efd72d5d2c5f7e [diff] |
dm: blk: Tidy up obtaining a block device from its parent This function now finds its block-device child by looking for a child device of the correct uclass (UCLASS_BLK). It cannot produce a device of any other type, so drop the superfluous check. Provide a version which does not probe the device, since that is often needed when setting up the device's platdata. Also fix up the function's comment. Signed-off-by: Simon Glass <sjg@chromium.org>