summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2021-04-08 17:25:59 +0800
committerMark Brown <broonie@kernel.org>2021-04-08 15:08:52 +0100
commita21fbc42807b15b74b0891bd557063e6acf4fcae (patch)
treefce46ca12561e04b2a14d52ed0e782a648281b50 /drivers/spi
parent5ac1b909e5b60cc2735bd9174f631dc2c7f44c5a (diff)
downloadlinux-a21fbc42807b15b74b0891bd557063e6acf4fcae.tar.gz
linux-a21fbc42807b15b74b0891bd557063e6acf4fcae.tar.bz2
linux-a21fbc42807b15b74b0891bd557063e6acf4fcae.zip
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-zynqmp-gqspi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-zynqmp-gqspi.c b/drivers/spi/spi-zynqmp-gqspi.c
index c8fa6ee18ae7..95963a2de64a 100644
--- a/drivers/spi/spi-zynqmp-gqspi.c
+++ b/drivers/spi/spi-zynqmp-gqspi.c
@@ -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);