]> git.sur5r.net Git - u-boot/blobdiff - drivers/remoteproc/rproc-uclass.c
usb: ohci: change the NUM_EDs from 8 to 32
[u-boot] / drivers / remoteproc / rproc-uclass.c
index a421e12e5d16f4d2fd97382a3a059fcd9c922507..1fc3d424b3e24fcb30e334a648de2a0aa0af3e85 100644 (file)
@@ -1,7 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2015
  * Texas Instruments Incorporated - http://www.ti.com/
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #define pr_fmt(fmt) "%s: " fmt, __func__
 #include <common.h>
@@ -66,7 +66,7 @@ static int _rproc_name_is_unique(struct udevice *dev,
        const char *check_name = data;
 
        /* devices not yet populated with data - so skip them */
-       if (!uc_pdata->name && check_name)
+       if (!uc_pdata->name || !check_name)
                return 0;
 
        /* Return 0 to search further if we dont match */
@@ -116,7 +116,7 @@ static int rproc_pre_probe(struct udevice *dev)
 
        if (!dev->platdata) {
 #if CONFIG_IS_ENABLED(OF_CONTROL)
-               int node = dev->of_offset;
+               int node = dev_of_offset(dev);
                const void *blob = gd->fdt_blob;
                bool tmp;
                if (!blob) {