From patchwork Sat Dec 22 19:41:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Cochran X-Patchwork-Id: 1906301 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 764AB3FC64 for ; Sat, 22 Dec 2012 19:44:10 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TmUxC-00047i-W8; Sat, 22 Dec 2012 19:41:51 +0000 Received: from mail-bk0-f45.google.com ([209.85.214.45]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TmUwr-00044E-JO for linux-arm-kernel@lists.infradead.org; Sat, 22 Dec 2012 19:41:30 +0000 Received: by mail-bk0-f45.google.com with SMTP id jk13so2884419bkc.18 for ; Sat, 22 Dec 2012 11:41:27 -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=PwpyUaJ1EBYHwILBrY6FFn3VrZErAqgMy3KS8nRZXuQ=; b=O+IaU7ZBLntsXKPyN9yOXelUgFPJHOW2gYowEaxOBV4jzTsIBHBqkZLq1ROVfqaCd8 K+rtZDOM5MPdl14rTTjOpd5IFXPER+cutuswwc5lQH7NBZEG2/3Cwbzu5Zh9R3yTE1rL H0vWYF7lTV6YEP3QyDknUMZzdtTh82ZsxNQJ2d71ju4anXeM2UE00U+FIsNBzXauEbq+ QBcVghpogQVaj0e4sAUuOBQQQjRoxOaV2IRk446anZlkFX7BZeAxyvCGkSX7TdY+wkYZ 57SPTHFD3wlAnS/LnjBEJD94bP5pMX8XqDb2nUgqa590cB+Mrey/G4CpzXaNqSQo7j6p sanw== X-Received: by 10.205.129.17 with SMTP id hg17mr8361376bkc.41.1356205287569; Sat, 22 Dec 2012 11:41:27 -0800 (PST) Received: from localhost.localdomain (089144206100.atnat0015.highway.a1.net. [89.144.206.100]) by mx.google.com with ESMTPS id q22sm12531039bkv.16.2012.12.22.11.41.25 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Dec 2012 11:41:27 -0800 (PST) From: Richard Cochran To: Subject: [PATCH 2/2] cpts: fix a run time warn_on. Date: Sat, 22 Dec 2012 20:41:09 +0100 Message-Id: X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121222_144129_836112_F9F4CCD7 X-CRM114-Status: GOOD ( 10.85 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.45 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (richardcochran[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Mugunthan V N , linux-omap@vger.kernel.org, David Miller , linux-arm-kernel@lists.infradead.org, Cyril Chemparathy X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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); }