mirror of
https://github.com/MiSTer-devel/u-boot_MiSTer.git
synced 2026-04-19 03:05:37 +00:00
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>