Skip to contentSkip to conversation

net: stmmac: Fix clock en-/disable calls

PATCH Superseded Stefan Roese 2 participants 2 messages Jun 6, 2012 – Jun 7, 2012

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: stmmac: Fix clock en-/disable calls

Cc viresh kumar <[email protected]>
Cc Giuseppe Cavallaro <[email protected]>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac.h +2 -2
index 6b5d060..f46d8d0 100644
@@ -109,7 +109,7 @@ struct stmmac_priv *stmmac_dvr_probe(struct device *device,
 static inline int stmmac_clk_enable(struct stmmac_priv *priv)
 {
 	if (!IS_ERR(priv->stmmac_clk))
-		return clk_enable(priv->stmmac_clk);
+		return clk_prepare_enable(priv->stmmac_clk);
 
 	return 0;
 }
@@ -119,7 +119,7 @@ static inline void stmmac_clk_disable(struct stmmac_priv *priv)
 	if (IS_ERR(priv->stmmac_clk))
 		return;
 
-	clk_disable(priv->stmmac_clk);
+	clk_disable_unprepare(priv->stmmac_clk);
 }
 static inline int stmmac_clk_get(struct stmmac_priv *priv)
 {
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw

From: Stefan Roese <[email protected]>
Date: Wed, 6 Jun 2012 08:49:11 +0200

Quoted 1 line

This means nothing to me.

What is fixed by using the prepare/unprepare variants vs. the plain ones?

It is absolutely inappropriate to not describe your change completely in your commit message.

This patch is being rejected.