}
 EXPORT_SYMBOL_GPL(fwnode_property_get_reference_args);
 
+static void property_entry_free_data(const struct property_entry *p)
+{
+       size_t i, nval;
+
+       if (p->is_array) {
+               if (p->is_string && p->pointer.str) {
+                       nval = p->length / sizeof(const char *);
+                       for (i = 0; i < nval; i++)
+                               kfree(p->pointer.str[i]);
+               }
+               kfree(p->pointer.raw_data);
+       } else if (p->is_string) {
+               kfree(p->value.str);
+       }
+       kfree(p->name);
+}
+
 static int property_copy_string_array(struct property_entry *dst,
                                      const struct property_entry *src)
 {
        return error;
 }
 
-static void property_entry_free_data(const struct property_entry *p)
-{
-       size_t i, nval;
-
-       if (p->is_array) {
-               if (p->is_string && p->pointer.str) {
-                       nval = p->length / sizeof(const char *);
-                       for (i = 0; i < nval; i++)
-                               kfree(p->pointer.str[i]);
-               }
-               kfree(p->pointer.raw_data);
-       } else if (p->is_string) {
-               kfree(p->value.str);
-       }
-       kfree(p->name);
-}
-
 /**
  * property_entries_dup - duplicate array of properties
  * @properties: array of properties to copy