dm: core: Simplify dm_probe_devices()
authorSimon Glass <sjg@chromium.org>
Wed, 20 Nov 2024 15:36:40 +0000 (08:36 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 14 Jan 2025 17:42:51 +0000 (11:42 -0600)
commit21dd873572a01d74bfdfceb7a30b056f8ccba187
tree66d6d33a596ed56141414493a70d4d73929cf3f2
parent70c79dc88f9678653919c1d1545817876f1c0802
dm: core: Simplify dm_probe_devices()

There is no point in checking the pre_reloc flag, since devices not
marked as pre-reloc will not have been bound, so won't exist yet.

There doesn't seem to be any point in checking if the device has a
valid devicetree node either, so drop that too.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c