From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH 2/2] cpts: fix a run time warn_on. Date: Sun, 23 Dec 2012 18:07:22 +0400 Message-ID: <50D7101A.6020506@mvista.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netdev-owner@vger.kernel.org To: Richard Cochran Cc: netdev@vger.kernel.org, Mugunthan V N , linux-omap@vger.kernel.org, David Miller , linux-arm-kernel@lists.infradead.org, Cyril Chemparathy List-Id: linux-omap@vger.kernel.org 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 > --- > drivers/net/ethernet/ti/cpts.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > 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