]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1168cbbf6b8bf9574b0f12df9bbb416da8545b41
treefce46ca12561e04b2a14d52ed0e782a648281b50
parent377930fa99fd6e9a40ff04ecb4900cb861f362b1
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