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: 17f88151ff190 ("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>

authored by Zhang Qilong and committed by Wolfram Sang e2062df7 367d4c88

Changed files
+2 -1
drivers
i2c
busses
+2 -1
drivers/i2c/busses/i2c-davinci.c
··· 823 823 r = pm_runtime_resume_and_get(dev->dev); 824 824 if (r < 0) { 825 825 dev_err(dev->dev, "failed to runtime_get device: %d\n", r); 826 - return r; 826 + goto err_pm; 827 827 } 828 828 829 829 i2c_davinci_init(dev); ··· 882 882 err_unuse_clocks: 883 883 pm_runtime_dont_use_autosuspend(dev->dev); 884 884 pm_runtime_put_sync(dev->dev); 885 + err_pm: 885 886 pm_runtime_disable(dev->dev); 886 887 887 888 return r;