net: ethernet: ti: am65-cpsw-ethtool: use pm_runtime_resume_and_get
authorMinghao Chi <chi.minghao@zte.com.cn>
Tue, 19 Apr 2022 11:03:52 +0000 (11:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2022 09:53:17 +0000 (10:53 +0100)
commite350dbac3c09a3318f871e0fab255e234408bde4
tree217af620f96345078833632b109b6e1c2a623c24
parentd09d3ec03f025fdc22e193277b30a7db20816d2b
net: ethernet: ti: am65-cpsw-ethtool: use pm_runtime_resume_and_get

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/am65-cpsw-ethtool.c