]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-lpspi: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 23 May 2020 13:38:59 +0000 (21:38 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 26 May 2020 16:44:55 +0000 (17:44 +0100)
commitca9cf5b1b756315425f8f6747ced583c2150cf9c
treeedf4476fe48c9fcfcc7f2eed0c6e5294823f6b28
parentc11a6542a2f4d1c82b9e507a76a542f80ae8d3b9
spi: spi-fsl-lpspi: Fix runtime PM imbalance on error

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20200523133859.5625-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c