usb: host: dwc3-sti-glue: Fix ofnode_valid() parameter
[platform/kernel/u-boot.git] / drivers / usb / host / dwc3-sti-glue.c
index a72ab20..3e6c142 100644 (file)
@@ -159,7 +159,7 @@ static int sti_dwc3_glue_bind(struct udevice *dev)
                        dwc3_node = node;
        }
 
-       if (!ofnode_valid(node)) {
+       if (!ofnode_valid(dwc3_node)) {
                pr_err("Can't find dwc3 subnode for %s\n", dev->name);
                return -ENODEV;
        }