From patchwork Sat Nov 10 06:43:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 1723271 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 1CB8C3FDD2 for ; Sat, 10 Nov 2012 06:47:49 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TX4pL-00051F-3x; Sat, 10 Nov 2012 06:45:59 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TX4oB-0004KP-6B for linux-arm-kernel@lists.infradead.org; Sat, 10 Nov 2012 06:44:48 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi5so3012955pad.36 for ; Fri, 09 Nov 2012 22:44:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=0cQrW0YMxQR5whaKvMaWBQeIVbYiLBQMWfjGKkcM+G8=; b=VuTyQcJknJfwp6bDcI5xCCH14n5M1xWmT2YadV7EUueTq8XKR4rmQBEez+vZmSVr5z 8pHrs1m8q1iAXktDRLDhlyf4nB9Zxz2MO8Qan11Qjq68h6zrcMjo5Nerz/ErR0Zt2Lnt Dxsg+9o2bd2Ybk1M1OSnZCcK3z3JeG8JYC9hL6e/Tsyl4Di8d2pb1FpPR3W2xKEHn2gj AusuVtz21/YxS0UkEckjPAs+ea5U4gQz+8Z+4yTqH+vngZT0XhvGCPz0vsSHIcXz6Pqm b2ARggM/JDchJd1MM6gglTYozVrmceGH7U0QpuBTxn6IPhBBe3R+uYCut9ckAKbklTWb W7vA== Received: by 10.66.79.133 with SMTP id j5mr5178664pax.51.1352529886901; Fri, 09 Nov 2012 22:44:46 -0800 (PST) Received: from localhost ([122.172.201.53]) by mx.google.com with ESMTPS id se4sm521042pbb.13.2012.11.09.22.44.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 22:44:46 -0800 (PST) From: Viresh Kumar To: mike.turquette@linaro.org Subject: [PATCH 8/8] CLK: SPEAr: Remove unused dummy apb_pclk Date: Sat, 10 Nov 2012 12:13:47 +0530 Message-Id: <7861e11203ede6e5ae8bb2e37fbe5323526a9c26.1352529508.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQlobEXLh6ycQifT34DEcH95a9yN7pcRRji8ljzj0QFjZMBiAoOackQSZmgjFdY6nHl0WBfX X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121110_014447_412099_502B92E1 X-CRM114-Status: UNSURE ( 8.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Vipul Kumar Samar , Viresh Kumar , spear-devel@list.st.com, linux-arm-kernel@lists.infradead.org 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: Vipul Kumar Samar Dummy clocks were added for ARM platforms, so that clk_get() for interface clk doesn't fail for amba devices from amba_probe(). Because there is no amba device for SPEAr that doesn't have a valid clock with dev_id for SPEAr, we don't need these dummy clocks. Hence, remove them. Signed-off-by: Vipul Kumar Samar Signed-off-by: Viresh Kumar --- drivers/clk/spear/spear1310_clock.c | 3 --- drivers/clk/spear/spear1340_clock.c | 3 --- drivers/clk/spear/spear3xx_clock.c | 3 --- drivers/clk/spear/spear6xx_clock.c | 3 --- 4 files changed, 12 deletions(-) diff --git a/drivers/clk/spear/spear1310_clock.c b/drivers/clk/spear/spear1310_clock.c index bc7f37e..147e25f 100644 --- a/drivers/clk/spear/spear1310_clock.c +++ b/drivers/clk/spear/spear1310_clock.c @@ -388,9 +388,6 @@ void __init spear1310_clk_init(void) { struct clk *clk, *clk1; - clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0); - clk_register_clkdev(clk, "apb_pclk", NULL); - clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, CLK_IS_ROOT, 32000); clk_register_clkdev(clk, "osc_32k_clk", NULL); diff --git a/drivers/clk/spear/spear1340_clock.c b/drivers/clk/spear/spear1340_clock.c index d4de680..82abea3 100644 --- a/drivers/clk/spear/spear1340_clock.c +++ b/drivers/clk/spear/spear1340_clock.c @@ -445,9 +445,6 @@ void __init spear1340_clk_init(void) { struct clk *clk, *clk1; - clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0); - clk_register_clkdev(clk, "apb_pclk", NULL); - clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, CLK_IS_ROOT, 32000); clk_register_clkdev(clk, "osc_32k_clk", NULL); diff --git a/drivers/clk/spear/spear3xx_clock.c b/drivers/clk/spear/spear3xx_clock.c index ea6543e..f39b023 100644 --- a/drivers/clk/spear/spear3xx_clock.c +++ b/drivers/clk/spear/spear3xx_clock.c @@ -360,9 +360,6 @@ void __init spear3xx_clk_init(void) { struct clk *clk, *clk1; - clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0); - clk_register_clkdev(clk, "apb_pclk", NULL); - clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, CLK_IS_ROOT, 32000); clk_register_clkdev(clk, "osc_32k_clk", NULL); diff --git a/drivers/clk/spear/spear6xx_clock.c b/drivers/clk/spear/spear6xx_clock.c index 8a81770..e862a33 100644 --- a/drivers/clk/spear/spear6xx_clock.c +++ b/drivers/clk/spear/spear6xx_clock.c @@ -119,9 +119,6 @@ void __init spear6xx_clk_init(void) { struct clk *clk, *clk1; - clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0); - clk_register_clkdev(clk, "apb_pclk", NULL); - clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, CLK_IS_ROOT, 32000); clk_register_clkdev(clk, "osc_32k_clk", NULL);