]> 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:35:50 +0000 (16:35 +0200)
commiteba05e46f8f2064f1ae17fcea39badacbab3e58b
tree719497c9f9cbd054db04a64bc8c02dd729198dd9
parent069fd1688c57c0cc8a3de64d108579b31676f74b
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