]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/core/root.c
net/designware: add error message on DMA reset timeout
[karo-tx-uboot.git] / drivers / core / root.c
index 393dd98b9db248c2c5d8ef89d280d1568cb3d759..47b3acfbe981da9fcfe5ca6d7c20e60dd63b0285 100644 (file)
@@ -73,10 +73,8 @@ int dm_scan_platdata(bool pre_reloc_only)
                dm_warn("Some drivers were not found\n");
                ret = 0;
        }
-       if (ret)
-               return ret;
 
-       return 0;
+       return ret;
 }
 
 #ifdef CONFIG_OF_CONTROL
@@ -91,7 +89,7 @@ int dm_scan_fdt_node(struct udevice *parent, const void *blob, int offset,
                if (pre_reloc_only &&
                    !fdt_getprop(blob, offset, "u-boot,dm-pre-reloc", NULL))
                        continue;
-               err = lists_bind_fdt(parent, blob, offset);
+               err = lists_bind_fdt(parent, blob, offset, NULL);
                if (err && !ret)
                        ret = err;
        }