]> 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)
commit5411ca89d83419d20b5b0781e4f3825a6bd40ae2
treeb4301811c9fe09eaa3bc2aed78eec0b9b8f4e27c
parent4bb786850bf47572b753297903d55785cd63bbb6
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