[PATCH 0/3] mfd syscon and altera-sysmgr cleanup

From: Peter Griffin
Date: Tue Feb 20 2024 - 06:50:22 EST


Hi,

Whilst implementing a driver similar to altera-sysmgr for exynos
it was noticed during the review feedback that we should only call
of_node_put() if the property is provided otherwise nothing has
taken a reference on the node. Both syscon and altera-sysmgr also
have the same issue which this series fixes.

Another piece of review feedback was not to use extern keyword in
the header file, so I also cleaned that up whilst being here.

regards,

Peter.

Peter Griffin (3):
mfd: syscon: call of_node_put() only when of_parse_phandle() takes a
ref
mfd: syscon: remove extern from function prototypes
mfd: altera-sysmgr: call of_node_put() only when of_parse_phandle()
takes a ref

drivers/mfd/altera-sysmgr.c | 4 +++-
drivers/mfd/syscon.c | 4 +++-
include/linux/mfd/syscon.h | 25 +++++++++++--------------
3 files changed, 17 insertions(+), 16 deletions(-)

--
2.44.0.rc0.258.g7320e95886-goog