Re: [PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Guenter Roeck
On 11/08/2013 01:08 AM, Alexander Sverdlin wrote: Hello Pantelis, On 07/11/13 21:17, ext Pantelis Antoniou wrote: Introduce helper functions for working with the live DT tree. __of_free_property() frees a dynamically created property __of_free_tree() recursively frees a device node tree __of_c

Re: [PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Pantelis Antoniou
Hi Guenter, On Nov 8, 2013, at 4:54 PM, Guenter Roeck wrote: > On 11/08/2013 01:08 AM, Alexander Sverdlin wrote: >> Hello Pantelis, >> >> On 07/11/13 21:17, ext Pantelis Antoniou wrote: >>> Introduce helper functions for working with the live DT tree. >>> >>> __of_free_property() frees a dynami

Re: [PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Alexander Sverdlin
Hi! On 08/11/13 15:54, ext Guenter Roeck wrote: >>> +struct property *__of_copy_property(const struct property *prop, gfp_t >>> flags) >>> +{ >>> +struct property *propn; >>> + >>> +propn = kzalloc(sizeof(*prop), flags); >>> +if (propn == NULL) >>> +return NULL; >>> + >>> +

Re: [PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-08 Thread Alexander Sverdlin
Hello Pantelis, On 07/11/13 21:17, ext Pantelis Antoniou wrote: > Introduce helper functions for working with the live DT tree. > > __of_free_property() frees a dynamically created property > __of_free_tree() recursively frees a device node tree > __of_copy_property() copies a property dynamicall

[PATCH v3 5/5] OF: Introduce utility helper functions

2013-11-07 Thread Pantelis Antoniou
Introduce helper functions for working with the live DT tree. __of_free_property() frees a dynamically created property __of_free_tree() recursively frees a device node tree __of_copy_property() copies a property dynamically __of_create_empty_node() creates an empty node __of_find_node_by_full_nam