summarylogtreecommitdiffstats
path: root/net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch
diff options
context:
space:
mode:
authoryjun2022-05-26 15:23:06 +0800
committeryjun2022-05-26 15:23:06 +0800
commit4047db0f896895cc59e490ee8f6872b93dd8386d (patch)
treeb62d64d9bd35d2b2907ed59b76b480b0e9f57650 /net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch
parentd66c7d0fc0b35270f9fe591a311563cc0d851555 (diff)
downloadaur-4047db0f896895cc59e490ee8f6872b93dd8386d.tar.gz
updpkg: linux-tqc-a01 5.18.0
Diffstat (limited to 'net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch')
-rw-r--r--net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch6
1 files changed, 2 insertions, 4 deletions
diff --git a/net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch b/net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch
index a371a65ffa42..dfd9c05f1dae 100644
--- a/net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch
+++ b/net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regulator.patch
@@ -41,10 +41,8 @@ index 09644ab0d87a..c0c8ce1f8b00 100644
+ return ret;
}
- ret = clk_prepare_enable(gmac->tx_clk);
-@@ -1045,8 +1043,7 @@ static void sun8i_dwmac_exit(struct platform_device *pdev, void *priv)
-
- clk_disable_unprepare(gmac->tx_clk);
+ if (gmac->use_internal_phy) {
+@@ -1045,6 +1043,5 @@ static void sun8i_dwmac_exit(struct platform_device *pdev, void *priv)
- if (gmac->regulator)
- regulator_disable(gmac->regulator);