From patchwork Mon Dec 24 07:19:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Cochran X-Patchwork-Id: 1908201 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DC681E00D8 for ; Mon, 24 Dec 2012 07:19:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752876Ab2LXHTa (ORCPT ); Mon, 24 Dec 2012 02:19:30 -0500 Received: from mail-bk0-f43.google.com ([209.85.214.43]:38970 "EHLO mail-bk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752801Ab2LXHT1 (ORCPT ); Mon, 24 Dec 2012 02:19:27 -0500 Received: by mail-bk0-f43.google.com with SMTP id jf20so3204003bkc.2 for ; Sun, 23 Dec 2012 23:19:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=OVFC6Kcdfya+VdWYdPoXOFciUHG5GXnrViyX8RrH6Dc=; b=UViV6BBIlKvILFMx2Xy5lq2wrc+xOKGn+h08Y2o7mkoLRcNsroTYIJJuheb2AS77E+ G0bqLt7m1sU+zFHRBxBIpYTQZwG6morIfyp970KMqSauq7Twex05RT30b6m8SPT+vsKD VWooZfTYUraGNNvqsjGirgTz4u3jx2Xff7mb0XBuSNzKlGFHUt56jdZP24ySDzFfBaAp XOR1TqrMCB5YjvOWyeLeFN8XykEKSeGwhvCiZM2m2wbZH+DLT61Xh16S+Ene9BRZADpU P50LqJGFI243lexFXgDtL0hOKCZWkOJ9r4p0QsecaRTsf3TR9SoIJN7v4gaxHQnYq/s6 skDA== X-Received: by 10.204.129.66 with SMTP id n2mr10252223bks.94.1356333565085; Sun, 23 Dec 2012 23:19:25 -0800 (PST) Received: from localhost.localdomain (089144206067.atnat0015.highway.a1.net. [89.144.206.67]) by mx.google.com with ESMTPS id 18sm14377645bkv.0.2012.12.23.23.19.22 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Dec 2012 23:19:24 -0800 (PST) From: Richard Cochran To: Cc: , , David Miller , Cyril Chemparathy , Mugunthan V N , Sergei Shtylyov Subject: [PATCH v2 2/2] cpts: fix a run time warn_on. Date: Mon, 24 Dec 2012 08:19:10 +0100 Message-Id: X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org This patch fixes a warning in clk_enable by calling clk_prepare_enable instead. Signed-off-by: Richard Cochran --- 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 5ab8fb4..463597f 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)