[PATCH 0/3] of: add of_property_alloc/free() and of_node_alloc/free()
From: Clément Léger
Date: Wed May 04 2022 - 11:42:08 EST
In order to be able to create new nodes and properties dynamically from
drivers, add of_property_alloc/free() and of_node_alloc/free(). These
functions can be used to create new nodes and properties flagged with
OF_DYNAMIC and to free them.
Some powerpc code was already doing such operations and thus, these
functions have been used to replace the manual creation of nodes and
properties.
Clément Léger (3):
of: dynamic: add of_property_alloc() and of_property_free()
of: dynamic: add of_node_alloc() and of_node_free()
powerpc/pseries: use of_property_*() and of_node_*() functions
arch/powerpc/platforms/pseries/dlpar.c | 51 +-----
.../platforms/pseries/hotplug-memory.c | 27 +--
arch/powerpc/platforms/pseries/reconfig.c | 44 ++---
drivers/of/dynamic.c | 160 +++++++++++++-----
include/linux/of.h | 25 +++
5 files changed, 166 insertions(+), 141 deletions(-)
--
2.34.1