Commit d7cf0f9a authored by Charles Keepax's avatar Charles Keepax Committed by Matt Davis
Browse files

FROMGIT: mfd: cs42l43: Use devres for remove as well

Currently the device is powered down in the remove callback, however
all other clean up is done through devres. The problem here is the
MFD children are cleaned up through devres. As this happens after
the remove callback has run, this leads to the incorrect ordering
where the child remove functions run after the device has been powered
down. Put the power down into devres as well such that everything runs
in the expected order.

(cherry picked from commit 4bfa9bec1f07d3f62adad77cdc85ac40891bbfb5 https://github.com/CirrusLogic/linux-drivers

 v6.12-cs42l43-cs35l56)
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20241205115822.2371719-4-ckeepax@opensource.cirrus.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>

Change-Id: Ieeee317094f9d4e5dc08fedb8cf885ae63c63798
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarTongtong Pan <pantongtong@huaqin.corp-partner.google.com>
parent bd73b216
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment