diff mbox

[1/2] mmc: agressive clocking framework v8

Message ID AANLkTimtF1kUEVNbz19x+UpJX+w1yfWZCxHu7wSdOX4f@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Linus Walleij Nov. 24, 2010, 1:15 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index 92e3370..69fa70a 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -68,9 +68,9 @@  static void mmc_host_clk_gate_delayed(struct mmc_host *host)
 	unsigned long flags;

 	if (!freq) {
-		pr_debug("%s: frequency set to 0 in disable function, "
-			 "this means the clock is already disabled.\n",
-			 mmc_hostname(host));
+		dev_dbg(mmc_dev(host), "frequency set to 0 in disable "
+			"function, this means the clock is already "
+			"disabled\n");
 		return;
 	}
 	/*
@@ -101,7 +101,7 @@  static void mmc_host_clk_gate_delayed(struct mmc_host *host)
 		/* This will set host->ios.clock to 0 */
 		mmc_gate_clock(host);
 		spin_lock_irqsave(&host->clk_lock, flags);
-		pr_debug("%s: gated MCI clock\n", mmc_hostname(host));
+		dev_dbg(mmc_dev(host), "gated MCI clock\n");
 	}
 	spin_unlock_irqrestore(&host->clk_lock, flags);
 	mutex_unlock(&host->clk_gate_mutex);
@@ -136,7 +136,7 @@  void mmc_host_clk_ungate(struct mmc_host *host)
 		spin_unlock_irqrestore(&host->clk_lock, flags);
 		mmc_ungate_clock(host);
 		spin_lock_irqsave(&host->clk_lock, flags);
-		pr_debug("%s: ungated MCI clock\n", mmc_hostname(host));
+		dev_dbg(mmc_dev(host), "ungated MCI clock\n");
 	}
 	host->clk_requests++;
 	spin_unlock_irqrestore(&host->clk_lock, flags);