]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/dm/lists.h
dm: Adjust lists_bind_fdt() to return the bound device
[karo-tx-uboot.git] / include / dm / lists.h
index 49d87e617687465d289b88e9a002f0ac4ea14223..23568952467e6d5b685d84e2664561f5ca9ea942 100644 (file)
@@ -42,7 +42,7 @@ struct uclass_driver *lists_uclass_lookup(enum uclass_id id);
  * @early_only: If true, bind only drivers with the DM_INIT_F flag. If false
  * bind all drivers.
  */
-int lists_bind_drivers(struct udevice *parent);
+int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only);
 
 /**
  * lists_bind_fdt() - bind a device tree node
@@ -53,7 +53,11 @@ int lists_bind_drivers(struct udevice *parent);
  * @parent: parent driver (root)
  * @blob: device tree blob
  * @offset: offset of this device tree node
+ * @devp: if non-NULL, returns a pointer to the bound device
+ * @return 0 if device was bound, -EINVAL if the device tree is invalid,
+ * other -ve value on error
  */
-int lists_bind_fdt(struct udevice *parent, const void *blob, int offset);
+int lists_bind_fdt(struct udevice *parent, const void *blob, int offset,
+                  struct udevice **devp);
 
 #endif