of: Refactor node and property manipulation function locking
authorRob Herring <robh@kernel.org>
Fri, 18 Aug 2023 20:41:01 +0000 (15:41 -0500)
committerRob Herring <robh@kernel.org>
Mon, 21 Aug 2023 22:09:57 +0000 (17:09 -0500)
commitfab610be30dbaa4ef5dcfabe4dc498c557a1b7ad
treeb9e6f627170855e7332856402748b849346e5eae
parent6701c2c76a1ed4bb442235204820cfa24e8d5b9c
of: Refactor node and property manipulation function locking

All callers of __of_{add,remove,update}_property() and
__of_{attach,detach}_node() wrap the call with the devtree_lock
spinlock. Let's move the spinlock into the functions. This allows moving
the sysfs update functions into those functions as well.

Link: https://lore.kernel.org/r/20230801-dt-changeset-fixes-v3-6-5f0410e007dd@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c
drivers/of/dynamic.c