]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: davinci: fix PM disable depth imbalance in davinci_i2c_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Thu, 29 Sep 2022 14:30:38 +0000 (22:30 +0800)
committerWolfram Sang <wsa@kernel.org>
Sat, 1 Oct 2022 22:46:42 +0000 (00:46 +0200)
commitf960dd1f688a8724fe363ea9d007747718f82b3e
tree0390eb876c516061f84632f4acb0e8d2a6037900
parent8d06446e48f421f79a24747959e2be51c2424215
i2c: davinci: fix PM disable depth imbalance in davinci_i2c_probe

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: ff81e581c2cc2 ("i2c: davinci: Add PM Runtime Support")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-davinci.c