summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2015-08-05 14:12:37 -0400
committerTom Rini <[email protected]>2015-08-05 14:12:37 -0400
commit1a2728ae4faf12874173de156b8a7e66cfbbeae5 (patch)
tree9aba8e6c915b341df8ec6077d8ecb28f1eb32b0b /include/dm
parentdcc7dbc73169bb4e39f27c1d95bbf031ccfc1744 (diff)
parent12c7510f17ff29190e52336910e43a50c0d620a6 (diff)
Merge git://git.denx.de/u-boot-x86
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index 9fa0048bd0a..12fd02d09a7 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -318,6 +318,8 @@ const char *dev_get_uclass_name(struct udevice *dev);
* @dev: Parent device to check
* @index: Child index
* @devp: Returns pointer to device
+ * @return 0 if OK, -ENODEV if no such device, other error if the device fails
+ * to probe
*/
int device_get_child(struct udevice *parent, int index, struct udevice **devp);
@@ -413,7 +415,7 @@ int device_get_global_by_of_offset(int of_offset, struct udevice **devp);
int device_find_first_child(struct udevice *parent, struct udevice **devp);
/**
- * device_find_first_child() - Find the first child of a device
+ * device_find_next_child() - Find the next child of a device
*
* @devp: Pointer to previous child device on entry. Returns pointer to next
* child device, or NULL if none