]> git.ipfire.org Git - thirdparty/linux.git/commit
reset: gpio: remove unneeded OF-node put
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 6 Mar 2026 17:22:45 +0000 (18:22 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 9 Mar 2026 09:17:50 +0000 (10:17 +0100)
commitfe3da77f2f946e84d13e5183ae0fa223b968766b
tree975c7a2a68b34b6656ff7daeab52ec749b1f428d
parent9d93e13bf5c4d7800a6168a145984adda9bf3c0e
reset: gpio: remove unneeded OF-node put

priv->rc.of_node is never set in reset core. Even if it were: tasking
the reset-gpio driver with controlling the reference count of an OF node
set up in reset core is a weird inversion of responsability. But it's
also wrong in that the underlying device never actually gets removed so
the node should not be put at all and especially not at driver detach.
Remove the devres action.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-gpio.c