Commits
![Simon Glass](https://secure.gravatar.com/avatar/2d9a761b37fce0019505889444685532.jpg?s=96&d=mm)
Simon Glass committed b06750501f5
dm: core: Add uclass_first_device_err() to return a valid device A common pattern is to call uclass_first_device() and then check if it actually returns a device. Add a new function which does this, returning an error if there are no devices in that uclass. Signed-off-by: Simon Glass <sjg@chromium.org>