spi: spi-zynqmp-gqspi: Fix runtime PM imbalance in zynqmp_qspi_probe
When platform_get_irq() fails, a pairing PM usage counter increment is needed to keep the counter balanced. It's the same for the following error paths. Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Link: https://lore.kernel.org/r/20210408092559.3824-1-dinghao.liu@zju.edu.cn Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5ac1b909e5
commit
a21fbc4280
|
@ -1197,6 +1197,7 @@ static int zynqmp_qspi_probe(struct platform_device *pdev)
|
|||
return 0;
|
||||
|
||||
clk_dis_all:
|
||||
pm_runtime_get_noresume(&pdev->dev);
|
||||
pm_runtime_set_suspended(&pdev->dev);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
clk_disable_unprepare(xqspi->refclk);
|
||||
|
|
Loading…
Reference in New Issue