]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: sy7636a: fix lifecycle of power good gpio
authorAndreas Kemnade <akemnade@kernel.org>
Sat, 6 Sep 2025 09:09:13 +0000 (11:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:29:59 +0000 (16:29 +0200)
commit34cac2d2983d0930b96b27ce89085cf986846b9a
tree7a21331039a6ed2e4766891d4809999f167c5865
parent5e462fa0dfdb52b3983cf41532d3d4c7d63e2f93
regulator: sy7636a: fix lifecycle of power good gpio

[ Upstream commit c05d0b32eebadc8be6e53196e99c64cf2bed1d99 ]

Attach the power good gpio to the regulator device devres instead of the
parent device to fix problems if probe is run multiple times
(rmmod/insmod or some deferral).

Fixes: 8c485bedfb785 ("regulator: sy7636a: Initial commit")
Signed-off-by: Andreas Kemnade <akemnade@kernel.org>
Reviewed-by: Alistair Francis <alistair@alistair23.me>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Message-ID: <20250906-sy7636-rsrc-v1-2-e2886a9763a7@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/sy7636a-regulator.c