mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
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 <fshao@chromium.org> Link: https://lore.kernel.org/r/20230824104101.4083400-4-fshao@chromium.org Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20231206231733.4031901-6-sboyd@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ffdfbafdc4
commit
f3e67fc406
@ -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[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user