]> git.baikalelectronics.ru Git - uboot.git/commit
bootstd: Simplify locating existing bootdevs
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:16 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
commitf0cf2229697c1cc5ee09d0dbb7d200f0fb2842e2
tree83f8beb011f0737dfe96e03cdf05d2b9b827d9e4
parent04f0eeec9427dce0184bbc8388dfbd94b9656978
bootstd: Simplify locating existing bootdevs

There is no point in trying to match the alias order for bootdevs, since
build_order() either sorts them by priority, uses the boot_targets
environment variable or the bootdev-order property.

Just use the iterator instead, to simplify the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c