]> git.baikalelectronics.ru Git - kernel.git/commit
spi: lpspi: fix the imbalance of runtime pm function call
authorClark Wang <xiaoning.wang@nxp.com>
Tue, 14 Jul 2020 07:52:47 +0000 (15:52 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jul 2020 00:55:50 +0000 (01:55 +0100)
commit1f13db893e6dedf5f33c77f4bafcc3b57604c7a3
tree61e0451bbbca9ec9e0f92fd3d0da483618b95d3e
parent5043a7d8e06a10d148bc9e208eb3341739cb9be1
spi: lpspi: fix the imbalance of runtime pm function call

Call the put function after probe successfully. Otherwise, the lpspi
module will keep active status until the first spi transfer called.

Disable runtime pm when probe fails. There is no need to active runtime
pm after probe failed.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Link: https://lore.kernel.org/r/20200714075251.12777-2-xiaoning.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c