]> 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)
commit5d4b225ba4ad10e3393844f6eff2e5b36ec644b6
tree61e0451bbbca9ec9e0f92fd3d0da483618b95d3e
parentdcd99b8e27a49dfccf934e6dd346fec64b82cb59
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