At present this function does not specify its return value. Fix it.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 include/dm/device.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/dm/device.h b/include/dm/device.h
index 9fa0048..dd9cef4 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);
 
-- 
2.5.0.rc2.392.g76e840b

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to