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)
commit2abbae5a0e4e1d81016f56a403b2daadfee314c3
tree61e0451bbbca9ec9e0f92fd3d0da483618b95d3e
parent2b2d441dcfa4bab4849fa1a792184e66ec4dfd95
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