spi: spi-zynqmp-gqspi: Fix runtime PM imbalance in zynqmp_qspi_probe
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Thu, 8 Apr 2021 09:25:59 +0000 (17:25 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 8 Apr 2021 14:08:52 +0000 (15:08 +0100)
commita21fbc42807b15b74b0891bd557063e6acf4fcae
treefce46ca12561e04b2a14d52ed0e782a648281b50
parent5ac1b909e5b60cc2735bd9174f631dc2c7f44c5a
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>
drivers/spi/spi-zynqmp-gqspi.c