[PATCH 07/11] spi: mtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
Joshua Crofts
crofts at kernel.org
Sun Nov 8 04:16:54 PST 2026
Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"),
driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.
Remove the redundant function calls.
Signed-off-by: Joshua Crofts <crofts at kernel.org>
---
drivers/spi/spi-mtk-nor.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c
index 6b6e55d68048..79e54ccf2a6a 100644
--- a/drivers/spi/spi-mtk-nor.c
+++ b/drivers/spi/spi-mtk-nor.c
@@ -932,7 +932,6 @@ static int mtk_nor_probe(struct platform_device *pdev)
pm_runtime_put_noidle(&pdev->dev);
pm_runtime_disable(&pdev->dev);
pm_runtime_set_suspended(&pdev->dev);
- pm_runtime_dont_use_autosuspend(&pdev->dev);
err_disable_clk:
mtk_nor_disable_clk(sp);
@@ -949,7 +948,6 @@ static void mtk_nor_remove(struct platform_device *pdev)
pm_runtime_disable(&pdev->dev);
pm_runtime_set_suspended(&pdev->dev);
- pm_runtime_dont_use_autosuspend(&pdev->dev);
mtk_nor_disable_clk(sp);
}
--
2.56.0
More information about the Linux-rockchip
mailing list