diff options
author | Richard Cochran <richardcochran@gmail.com> | 2012-12-23 16:19:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-26 17:15:09 -0500 |
commit | ccb6e984a1f0ee03c3e2607809fe3809fa872a2e (patch) | |
tree | 5243c1ece37dec05c079e7aace60b07de1317d99 /drivers/net/ethernet/ti/cpts.c | |
parent | cbc44dbe1fc5df0959bf075405dcef07989fed37 (diff) |
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.c | 2 |
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) | |||
247 | cpts->refclk = NULL; | 247 | cpts->refclk = NULL; |
248 | return; | 248 | return; |
249 | } | 249 | } |
250 | clk_enable(cpts->refclk); | 250 | clk_prepare_enable(cpts->refclk); |
251 | } | 251 | } |
252 | 252 | ||
253 | static void cpts_clk_release(struct cpts *cpts) | 253 | static void cpts_clk_release(struct cpts *cpts) |