Re: [PATCH] spi: axiado: Remove redundant pm_runtime_mark_last_busy() call

Markus Elfring <[email protected]>
Newsgroups org.kernel.vger.kernel-janitors,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-spi
Message-ID <[email protected]>
…
> +++ b/drivers/spi/spi-axiado.c
> @@ -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;

How do you think about to construct another coccicheck script
for such a source code transformation pattern?
https://elixir.bootlin.com/linux/v7.0-rc3/source/include/linux/pm_runtime.h#L579-L603

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.