net: ethernet: ti: davinci_emac: using pm_runtime_resume_and_get instead of pm_runtim...
authorMinghao Chi <chi.minghao@zte.com.cn>
Thu, 14 Apr 2022 09:08:00 +0000 (09:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 10:18:24 +0000 (11:18 +0100)
commit81669e7c6ca44746d869925f337d9bbb0a252fc1
treec424db7a808794bdf415d281912596ea7878f882
parentbb578430d05b8b9114195ef2c25284374fdf9549
net: ethernet: ti: davinci_emac: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c