]> git.apps.os.sepia.ceph.com Git - ceph-client.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)
committerMark Brown <broonie@kernel.org>
Mon, 8 Sep 2025 15:33:24 +0000 (16:33 +0100)
commitc05d0b32eebadc8be6e53196e99c64cf2bed1d99
tree6b7efa09899d6c47c0e0a174803801de2bfe25ef
parentb320789d6883cc00ac78ce83bccbfe7ed58afcf0
regulator: sy7636a: fix lifecycle of power good gpio

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>
drivers/regulator/sy7636a-regulator.c