diff options
| author | Simon Glass <[email protected]> | 2022-09-06 20:27:17 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-09-29 16:11:31 -0400 |
| commit | 8909066199281b86bf4ee7673ec6d7983dd12a26 (patch) | |
| tree | 8e2b25f62f29ad0e2a9252b41ce1e916b4ecac8d /drivers/cpu | |
| parent | 52ad21aa2cc55f53da19436f457a8590abf0d125 (diff) | |
dm: core: Drop ofnode_is_available()
This function is also available as ofnode_is_enabled(), so use that
instead.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/cpu')
| -rw-r--r-- | drivers/cpu/imx8_cpu.c | 2 | ||||
| -rw-r--r-- | drivers/cpu/riscv_cpu.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index abddbef57b8..b8eb2d28006 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/cpu/imx8_cpu.c @@ -144,7 +144,7 @@ static int cpu_imx_get_count(const struct udevice *dev) ofnode_for_each_subnode(node, dev_ofnode(dev->parent)) { const char *device_type; - if (!ofnode_is_available(node)) + if (!ofnode_is_enabled(node)) continue; device_type = ofnode_read_string(node, "device_type"); diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index b30dceba37c..d6484d7f4b4 100644 --- a/drivers/cpu/riscv_cpu.c +++ b/drivers/cpu/riscv_cpu.c @@ -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"); |
