Commit de1e963
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) <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Fixes: fecd4d7 ("net: stmmac: dwmac-rk: Add integrated PHY support")
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 52966bf commit de1e963
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1765 | 1765 | | |
1766 | 1766 | | |
1767 | 1767 | | |
1768 | | - | |
| 1768 | + | |
| 1769 | + | |
1769 | 1770 | | |
1770 | 1771 | | |
1771 | 1772 | | |
1772 | 1773 | | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
1773 | 1777 | | |
1774 | 1778 | | |
1775 | 1779 | | |
| |||
0 commit comments