Skip to content

Commit

Permalink
cpts: fix a run time warn_on.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Cochran authored and David S. Miller committed Dec 26, 2012
1 parent cbc44db commit ccb6e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/cpts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ccb6e98

Please sign in to comment.