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: 1906311 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D9D003FC64 for ; Sat, 22 Dec 2012 19:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751973Ab2LVTss (ORCPT ); Sat, 22 Dec 2012 14:48:48 -0500 Received: from mail-bk0-f52.google.com ([209.85.214.52]:50466 "EHLO mail-bk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853Ab2LVTss (ORCPT ); Sat, 22 Dec 2012 14:48:48 -0500 X-Greylist: delayed 440 seconds by postgrey-1.27 at vger.kernel.org; Sat, 22 Dec 2012 14:48:48 EST Received: by mail-bk0-f52.google.com with SMTP id w5so2882534bku.39 for ; Sat, 22 Dec 2012 11:48:47 -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: Cc: , , David Miller , Cyril Chemparathy , Mugunthan V N 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: 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 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); }