dm: core: Access device ofnode through functions
[platform/kernel/u-boot.git] / net / mdio-mux-uclass.c
index 5f38f9f..780526c 100644 (file)
@@ -163,7 +163,7 @@ static int dm_mdio_mux_post_bind(struct udevice *mux)
        ofnode ch_node;
        int err, first_err = 0;
 
-       if (!ofnode_valid(mux->node)) {
+       if (!dev_has_ofnode(mux)) {
                debug("%s: no mux node found, no child MDIO busses set up\n",
                      __func__);
                return 0;