]> git.baikalelectronics.ru Git - kernel.git/commit
spi/omap100k:Fix PM disable depth imbalance in omap1_spi100k_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Sat, 24 Sep 2022 12:13:09 +0000 (20:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:25 +0000 (13:22 +0200)
commit15df07fcc37595c96056590e2f9622316a3845b9
tree0c0b54fd8cb2be4e6b1b84253f46dc2c6669a8c4
parent34826634a3b4d14c793f33c9223b5bf59469ea25
spi/omap100k:Fix PM disable depth imbalance in omap1_spi100k_probe

[ Upstream commit 3e23dec24c9555171d20d1e0b63dfcebfe1a1b51 ]

The pm_runtime_enable will increase power disable depth. Thus
a pairing decrement is needed on the error handling path to
keep it balanced according to context.

Fixes:b4bc6f98378a0 ("spi/omap100k: Convert to runtime PM")

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20220924121310.78331-4-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-omap-100k.c