net: stmmac: rk: put the PHY clock on remove
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 8 Aug 2025 12:16:34 +0000 (13:16 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Aug 2025 03:11:23 +0000 (20:11 -0700)
commitde1e963ad064caf73ee2c7485b925f381a3aefbf
treeef9723996482e99c303b3a832d4c4f3ea863637b
parent52966bf71de98fef4ca7b3be1349adc7459d6d53
net: stmmac: rk: put the PHY clock on remove

The PHY clock (bsp_priv->clk_phy) is obtained using of_clk_get(), which
doesn't take part in the devm release. Therefore, when a device is
unbound, this clock needs to be explicitly put. Fix this.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Simon Horman <horms@kernel.org>
Fixes: fecd4d7eef8b ("net: stmmac: dwmac-rk: Add integrated PHY support")
Link: https://patch.msgid.link/E1ukM1S-0086qo-PC@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c