]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: axiado: Remove redundant pm_runtime_mark_last_busy() call
authorFelix Gu <ustc.gu@gmail.com>
Sat, 7 Mar 2026 07:47:15 +0000 (15:47 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 10 Mar 2026 19:40:00 +0000 (19:40 +0000)
The pm_runtime_mark_last_busy() call is redundant in the probe function
as pm_runtime_put_autosuspend() already calls pm_runtime_mark_last_busy()
internally to update the last access time of the device before queuing
autosuspend.

Fixes: e75a6b00ad79 ("spi: axiado: Add driver for Axiado SPI DB controller")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20260307-axiado-1-v1-1-e90aa1b6dd9b@gmail.com
drivers/spi/spi-axiado.c

index 8cea81432c5bac7efb60bf790e415a7e02adf450..bd5f67acc4f65c603bf2a57f0b5e9a81e882cb20 100644 (file)
@@ -850,7 +850,6 @@ static int ax_spi_probe(struct platform_device *pdev)
 
        ctlr->bits_per_word_mask = SPI_BPW_MASK(8);
 
-       pm_runtime_mark_last_busy(&pdev->dev);
        pm_runtime_put_autosuspend(&pdev->dev);
 
        ctlr->mem_ops = &ax_spi_mem_ops;