Message ID | 20240906031345.1052241-3-ruanjinjie@huawei.com |
---|---|
State | New |
Headers | show |
Series | spi: geni-qcom: Fix incorrect free_irq() sequence | expand |
diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index fc2819effe2d..38857edbc785 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni-qcom.c @@ -1158,6 +1158,7 @@ static int spi_geni_probe(struct platform_device *pdev) spi_geni_release_dma: spi_geni_release_dma_chan(mas); spi_geni_probe_runtime_disable: + pm_runtime_dont_use_autosuspend(dev); pm_runtime_disable(dev); return ret; } @@ -1174,6 +1175,7 @@ static void spi_geni_remove(struct platform_device *pdev) spi_geni_release_dma_chan(mas); + pm_runtime_dont_use_autosuspend(&pdev->dev); pm_runtime_disable(&pdev->dev); }