dm: core: Allow getting some basic stats
[platform/kernel/u-boot.git] / drivers / core / of_access.c
index 0a12e9b..3707143 100644 (file)
@@ -22,6 +22,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <asm/global_data.h>
 #include <linux/bug.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
@@ -580,7 +581,8 @@ int of_property_match_string(const struct device_node *np, const char *propname,
  * @propname:  name of the property to be searched.
  * @out_strs:  output array of string pointers.
  * @sz:                number of array elements to read.
- * @skip:      Number of strings to skip over at beginning of list.
+ * @skip:      Number of strings to skip over at beginning of list (cannot be
+ *     negative)
  *
  * Don't call this function directly. It is a utility helper for the
  * of_property_read_string*() family of functions.