net/cadence: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 11 Apr 2022 01:38:12 +0000 (01:38 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 03:53:56 +0000 (20:53 -0700)
commitb66bfc131c69bd9a5ed3ae90be4cf47ec46c1526
tree8efda94815a82719132968a3f8889ca5157dff61
parentb8ff3395fbdf3b79a99d0ef410fc34c51044121e
net/cadence: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get is more appropriate
for simplifing code

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220411013812.2517212-1-chi.minghao@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c