From patchwork Sat Nov 10 14:07:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Gusakov X-Patchwork-Id: 1723771 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 5A1233FDD2 for ; Sat, 10 Nov 2012 14:12:39 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TXBlN-0003tc-50; Sat, 10 Nov 2012 14:10:21 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TXBlK-0003tK-Tf for linux-arm-kernel@lists.infradead.org; Sat, 10 Nov 2012 14:10:19 +0000 Received: by mail-lb0-f177.google.com with SMTP id gi11so3508154lbb.36 for ; Sat, 10 Nov 2012 06:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=7eveyHM+0gWmlBbkzh7w0FJcqpWumHSMfCA1OsAmbZM=; b=BHAFitwpb8OqoI4CwddULqGwJliHInTaf4g/PXG1NsWXtQQsbWltsYENm88MlMK1K4 PVq2VJl74a1WPLf+AAdMK7CBptU8dm2ROFOKeBrJqa4yRsRMPXUpWLhuLIUs81SDs2a0 0kWhiEyAGcJOEnMySl5wCfPKgX0R1Wp8gfaVIHv34sVU/0lARzs1+bzOoakIguzFfuSA eYa9/z6vZr+GdCle+UNTXqf5W9sR1HUQ30hXSD72sO5mogUwJ6ENrd7V8kNQ3DtHvy9P EzbsRXr7gKL/ohSAgo2C3wsWOhsxPnOHSrqdGvbsAil+p9kA9JsiLJkaROxOkKUnsTkR 0bdQ== Received: by 10.112.30.65 with SMTP id q1mr5353535lbh.83.1352556616241; Sat, 10 Nov 2012 06:10:16 -0800 (PST) Received: from localhost.localdomain ([188.242.236.108]) by mx.google.com with ESMTPS id fp7sm514548lab.4.2012.11.10.06.10.14 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 10 Nov 2012 06:10:15 -0800 (PST) From: dron0gus@gmail.com To: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: S3C64XX: Staticly define parent clock of "camera" clock Date: Sat, 10 Nov 2012 18:07:57 +0400 Message-Id: <509e6047.a766980a.0f91.14f6@mx.google.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1352556477-3700-1-git-send-email-y> References: <1352556477-3700-1-git-send-email-y> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121110_091019_140227_34C15345 X-CRM114-Status: GOOD ( 11.70 ) 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.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dron0gus[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 -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] Cc: sylvester.nawrocki@gmail.com, Andrey Gusakov , Andrey Gusakov 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 From: Andrey Gusakov The "camera" clock have only one parent. Define it staticly and remove unused source clock list. Signed-off-by: Andrey Gusakov Reviewed-by: Tomasz Figa Reviewed-by: Sylwester Nawrocki --- arch/arm/mach-s3c64xx/clock.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-s3c64xx/clock.c b/arch/arm/mach-s3c64xx/clock.c index b2d08fa..19228f3 100644 --- a/arch/arm/mach-s3c64xx/clock.c +++ b/arch/arm/mach-s3c64xx/clock.c @@ -677,15 +677,6 @@ static struct clksrc_sources clkset_audio2 = { .nr_sources = ARRAY_SIZE(clkset_audio2_list), }; -static struct clk *clkset_camif_list[] = { - &clk_h2, -}; - -static struct clksrc_sources clkset_camif = { - .sources = clkset_camif_list, - .nr_sources = ARRAY_SIZE(clkset_camif_list), -}; - static struct clk *clkset_mfc_list[] = { &clk_h2, &clk_mout_epll.clk, @@ -750,10 +741,9 @@ static struct clksrc_clk clksrcs[] = { .name = "camera", .ctrlbit = S3C_CLKCON_SCLK_CAM, .enable = s3c64xx_sclk_ctrl, + .parent = &clk_h2, }, .reg_div = { .reg = S3C_CLK_DIV0, .shift = 20, .size = 4 }, - .reg_src = { .reg = NULL, .shift = 0, .size = 0 }, - .sources = &clkset_camif, }, { .clk = { .name = "sclk_mfc",