i2c: davinci: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Thu, 14 Apr 2022 09:07:27 +0000 (09:07 +0000)
committerWolfram Sang <wsa@kernel.org>
Wed, 4 May 2022 20:40:35 +0000 (22:40 +0200)
commita181b8d187319bf265a2019ddde856a3d2f107a6
tree447ad1ec29fb37dab0b204318f4593767a662adc
parent5692900bed2a76c4086dc25557f28d7baac9307c
i2c: davinci: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-davinci.c