commit | 67d44de2f842414d28acc0512311a9dad17ee797 | [log] [tgz] |
---|---|---|
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | Fri Apr 23 17:19:14 2021 +0200 |
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | Wed May 19 09:51:41 2021 +0200 |
tree | f0d460f8f601fa3307d09bc6c5d479658c0f0409 | |
parent | e7c018a96355fa0d8ce2d4499d300584a92717c2 [diff] |
media: i2c: ov02a10: use pm_runtime_resume_and_get() Commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") added pm_runtime_resume_and_get() in order to automatically handle dev->power.usage_count decrement on errors. Use the new API, in order to cleanup the error check logic. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>