net: stmmac: stmmac_main: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 13 Apr 2022 09:38:01 +0000 (09:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 09:53:46 +0000 (10:53 +0100)
commit85648865bb95e3c2b10d22687fc5998cb5ae37cc
tree5136dd3a0e8949b3fafba41602037fc450077d53
parentc557a9ae4960a8aaede722833e567897f05aa9ef
net: stmmac: stmmac_main: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c