summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-06 20:27:17 -0600
committerTom Rini <trini@konsulko.com>2022-09-29 16:11:31 -0400
commit8909066199281b86bf4ee7673ec6d7983dd12a26 (patch)
tree8e2b25f62f29ad0e2a9252b41ce1e916b4ecac8d /net
parent52ad21aa2cc55f53da19436f457a8590abf0d125 (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 <sjg@chromium.org>
Diffstat (limited to 'net')
-rw-r--r--net/dsa-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c
index 3bf4351c84..5b7046432f 100644
--- a/net/dsa-uclass.c
+++ b/net/dsa-uclass.c
@@ -432,7 +432,7 @@ static int dsa_post_bind(struct udevice *dev)
* skip registration if port id not found or if the port
* is explicitly disabled in DT
*/
- if (!ofnode_valid(pnode) || !ofnode_is_available(pnode))
+ if (!ofnode_valid(pnode) || !ofnode_is_enabled(pnode))
continue;
err = device_bind_driver_to_node(dev, DSA_PORT_CHILD_DRV_NAME,