Fix PM disable depth imbalance in stm32 probe
authorMark Brown <broonie@kernel.org>
Tue, 27 Sep 2022 18:58:57 +0000 (19:58 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 27 Sep 2022 18:58:57 +0000 (19:58 +0100)
commit16b51447b20c24d79b13a4477fdef93dbba123e4
treedcb3aa2ea642d0e7bc5fd9e16a026ff126280a34
parent93618e5e05a3ce4aa6750268c5025bdb4cb7dc6e
parent0325cc0ac7980e1c7b744aab8df59afab6daeb43
Fix PM disable depth imbalance in stm32 probe

Merge series from Zhang Qilong <zhangqilong3@huawei.com>:

The pm_runtime_enable will increase power disable depth. Thus
a pairing decrement is needed on the error handling path to
keep it balanced. We fix it by moving pm_runtime_enable to the
endding of probe.