summaryrefslogtreecommitdiffstats
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-09-04 16:27:25 -0600
committerSimon Glass <sjg@chromium.org>2014-09-10 12:59:59 -0600
commit1f359e3611c55d9cfae88dafce04db1833033bd0 (patch)
tree09393f882800f16630b53f107770741fa680bfe2 /include/dm
parentaac07d49d00b4bc8ca3f4aca0f3ad26385fb1d37 (diff)
downloadtalos-obmc-uboot-1f359e3611c55d9cfae88dafce04db1833033bd0.tar.gz
talos-obmc-uboot-1f359e3611c55d9cfae88dafce04db1833033bd0.zip
dm: Adjust lists_bind_fdt() to return the bound device
Allow the caller to find out the device that was bound in response to this call. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/lists.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/dm/lists.h b/include/dm/lists.h
index 87a3af59c2..2356895246 100644
--- a/include/dm/lists.h
+++ b/include/dm/lists.h
@@ -53,7 +53,11 @@ int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only);
* @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
OpenPOWER on IntegriCloud