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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user