summaryrefslogtreecommitdiff
path: root/tools/firewire
diff options
context:
space:
mode:
authorPaul Geurts <paul_geurts@live.nl>2024-04-18 22:25:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-02 17:35:16 +0300
commit95a3032840fedef49a1a406699775304b594dec3 (patch)
tree58906789f3d26c1fe55a13e572dbcb464779bae6 /tools/firewire
parenta217566936ee6f80c385bf415210b485bef948d8 (diff)
downloadlinux-95a3032840fedef49a1a406699775304b594dec3.tar.xz
NFC: trf7970a: disable all regulators on removal
[ Upstream commit 6bea4f03c6a4e973ef369e15aac88f37981db49e ] During module probe, regulator 'vin' and 'vdd-io' are used and enabled, but the vdd-io regulator overwrites the 'vin' regulator pointer. During remove, only the vdd-io is disabled, as the vin regulator pointer is not available anymore. When regulator_put() is called during resource cleanup a kernel warning is given, as the regulator is still enabled. Store the two regulators in separate pointers and disable both the regulators on module remove. Fixes: 49d22c70aaf0 ("NFC: trf7970a: Add device tree option of 1.8 Volt IO voltage") Signed-off-by: Paul Geurts <paul_geurts@live.nl> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/DB7PR09MB26847A4EBF88D9EDFEB1DA0F950E2@DB7PR09MB2684.eurprd09.prod.outlook.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/firewire')
0 files changed, 0 insertions, 0 deletions