[PATCH 10/11] spi: rtk-nor: remove redundant pm_runtime_dont_use_autosuspend() calls
Joshua Crofts
crofts at kernel.org
Sun Nov 8 04:16:57 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-rtk-nor.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/spi/spi-rtk-nor.c b/drivers/spi/spi-rtk-nor.c
index 75856c31d2e6..202f9df8739e 100644
--- a/drivers/spi/spi-rtk-nor.c
+++ b/drivers/spi/spi-rtk-nor.c
@@ -539,7 +539,6 @@ static int rtk_spi_probe(struct platform_device *pdev)
pm_runtime_put_noidle(dev);
pm_runtime_disable(dev);
pm_runtime_set_suspended(dev);
- pm_runtime_dont_use_autosuspend(dev);
reset_control_assert(host->rstc);
clk_disable_unprepare(host->clk);
@@ -560,7 +559,6 @@ static void rtk_spi_remove(struct platform_device *pdev)
pm_runtime_put_noidle(dev);
pm_runtime_disable(dev);
pm_runtime_set_suspended(dev);
- pm_runtime_dont_use_autosuspend(dev);
reset_control_assert(host->rstc);
clk_disable_unprepare(host->clk);
}
--
2.56.0
More information about the Linux-rockchip
mailing list