dm: core: Drop ofnode_is_available()

This function is also available as ofnode_is_enabled(), so use that
instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-09-06 20:27:17 -06:00
committed by Tom Rini
parent 52ad21aa2c
commit 8909066199
22 changed files with 22 additions and 39 deletions

View File

@@ -77,7 +77,7 @@ static int riscv_cpu_get_count(const struct udevice *dev)
const char *device_type;
/* skip if hart is marked as not available in the device tree */
if (!ofnode_is_available(node))
if (!ofnode_is_enabled(node))
continue;
device_type = ofnode_read_string(node, "device_type");