net: stmmac: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Fri, 8 Apr 2022 08:12:50 +0000 (08:12 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 03:31:59 +0000 (20:31 -0700)
commite2d0acd40c876ad0cd3e8805adcf2325b910360c
tree9dc00820eb6b16cc5a0184cfa8282cd24d39d736
parent1cb9d3b6185b2a4d1d592632a7faf5d8c8e5f9b3
net: stmmac: 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>
Link: https://lore.kernel.org/r/20220408081250.2494588-1-chi.minghao@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c