net: stmmac: sti: convert to stmmac_pltfr_pm_ops
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 15 Apr 2025 16:42:34 +0000 (17:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:31:06 +0000 (18:31 -0700)
commitb3334f9f708cb27b9ae68f818e1424458f50497c
treee907b1407c64acb0d51f4b26d0f308b8b127fe6a
parent403068c6c9c25ef772d99bc91ce85ae39ed41c76
net: stmmac: sti: convert to stmmac_pltfr_pm_ops

As we now have the plat_dat->init()/plat_dat->exit() populated which
have the required functionality on suspend/resume, we can now use
stmmac_pltfr_pm_ops which has methods that call these two functions.
Switch over to use this.

Doing so also fills in the runtime PM ops and _noirq variants as well.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1u4jMo-000rCS-6f@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c