summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti/cpts.c
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2012-12-23 22:19:10 +0100
committerDavid S. Miller <davem@davemloft.net>2012-12-26 23:15:09 +0100
commitccb6e984a1f0ee03c3e2607809fe3809fa872a2e (patch)
tree5243c1ece37dec05c079e7aace60b07de1317d99 /drivers/net/ethernet/ti/cpts.c
parentcpts: fix build error by removing useless code. (diff)
downloadlinux-ccb6e984a1f0ee03c3e2607809fe3809fa872a2e.tar.xz
linux-ccb6e984a1f0ee03c3e2607809fe3809fa872a2e.zip
cpts: fix a run time warn_on.
This patch fixes a warning in clk_enable by calling clk_prepare_enable instead. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpts.c')
-rw-r--r--drivers/net/ethernet/ti/cpts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c
index 5ab8fb4037fa..463597f919f1 100644
--- a/drivers/net/ethernet/ti/cpts.c
+++ b/drivers/net/ethernet/ti/cpts.c
@@ -247,7 +247,7 @@ static void cpts_clk_init(struct cpts *cpts)
cpts->refclk = NULL;
return;
}
- clk_enable(cpts->refclk);
+ clk_prepare_enable(cpts->refclk);
}
static void cpts_clk_release(struct cpts *cpts)