]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Tue, 12 Apr 2022 08:28:47 +0000 (08:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 21:59:27 +0000 (14:59 -0700)
commit51e946572da7f9505e4ce1144d334c756ae577e0
treeb4301811c9fe09eaa3bc2aed78eec0b9b8f4e27c
parente355e8025e823db3ae691f31d363a5ff5d79d1cf
net: ethernet: ti: cpsw: 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: Grygorii Strashko <grygorii.strashko@ti.com>
Link: https://lore.kernel.org/r/20220412082847.2532584-1-chi.minghao@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/cpsw.c