aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFei Shao <[email protected]>2023-12-06 15:17:28 -0800
committerGreg Kroah-Hartman <[email protected]>2023-12-15 17:27:04 +0100
commitf3e67fc406909fca9429b4283f243e855fab5c59 (patch)
tree0e6e983193530656f303127ef12eb73df91553db
parentffdfbafdc4f46a92e6bebaa61048b9f56301e2fa (diff)
spmi: mtk-pmif: Reorder driver remove sequence
This driver enables clocks and then adds SPMI controller in probing, so we expect the reversed sequence in removal. Fix the order in the remove callback. Signed-off-by: Fei Shao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/spmi/spmi-mtk-pmif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spmi/spmi-mtk-pmif.c b/drivers/spmi/spmi-mtk-pmif.c
index 6ebc6901490a..cc660da6a037 100644
--- a/drivers/spmi/spmi-mtk-pmif.c
+++ b/drivers/spmi/spmi-mtk-pmif.c
@@ -515,9 +515,9 @@ static void mtk_spmi_remove(struct platform_device *pdev)
struct spmi_controller *ctrl = platform_get_drvdata(pdev);
struct pmif *arb = spmi_controller_get_drvdata(ctrl);
+ spmi_controller_remove(ctrl);
clk_bulk_disable_unprepare(arb->nclks, arb->clks);
clk_bulk_put(arb->nclks, arb->clks);
- spmi_controller_remove(ctrl);
}
static const struct of_device_id mtk_spmi_match_table[] = {