Thread (5 messages) 5 messages, 2 authors, 2012-12-24

Re: [PATCH 2/2] cpts: fix a run time warn_on.

From: Sergei Shtylyov <hidden>
Date: 2012-12-23 14:07:22
Also in: linux-arm-kernel, linux-omap

Hello.

On 22-12-2012 23:41, Richard Cochran wrote:
This patch fixes a warning in clk_enable by calling clk_prepare first.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
  drivers/net/ethernet/ti/cpts.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c
index 5ab8fb4..3e32a31 100644
--- a/drivers/net/ethernet/ti/cpts.c
+++ b/drivers/net/ethernet/ti/cpts.c
@@ -247,6 +247,7 @@ static void cpts_clk_init(struct cpts *cpts)
  		cpts->refclk = NULL;
  		return;
  	}
+	clk_prepare(cpts->refclk);
  	clk_enable(cpts->refclk);
    Maybe just call clk_prepare_enable() instead?

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help