From patchwork Fri Jan 30 21:25:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Turquette X-Patchwork-Id: 44064 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1054124267 for ; Fri, 30 Jan 2015 21:25:50 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf4216755wiv.0 for ; Fri, 30 Jan 2015 13:25:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ZlpX5emOUfpbfZRiSiUbYIeB8Ch5T9r0tNYaJxHCyVA=; b=XgZBa43mcD+uy2dN5Z9cwqsv0bAf6xdiygMq+08J/fn1of60fMAeThILVzuDXlVAgT IVNs2aB48IIg3jKRwRPThWYp0VNBSuHSpMM87tvftGXppEtNNqlb2HYmAODmVCfgEt7s H6DAgXT6QOXRPMmxED9wJVcwUM2GNrmJFUvf4L4Snvob6Wdb/nbVisjTDxF9ERod1wzp RKvdKf83fTRh2klsfmKwy4up/4x7OGsuFGKS0X+hsmi+75R8rKyMRrc2y9l43YnxsUxE VgUW1u94a1rp+QoQLKYOt6/prMGRIubDwiXuMVGkc7ekbnWU+srCnbifVD4zxwXmGgSR OWNQ== X-Gm-Message-State: ALoCoQlsQ7Z0FhNHvQdCnJ6V/aBe1jzQI5L0a4stXBZioTU9zf9CwoteF8wM2QGHWaNUDt8xqj4x X-Received: by 10.180.105.228 with SMTP id gp4mr86635wib.6.1422653149315; Fri, 30 Jan 2015 13:25:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.37 with SMTP id ll5ls525671lac.53.gmail; Fri, 30 Jan 2015 13:25:49 -0800 (PST) X-Received: by 10.152.184.231 with SMTP id ex7mr8861357lac.4.1422653149154; Fri, 30 Jan 2015 13:25:49 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id o1si10968529lal.131.2015.01.30.13.25.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 Jan 2015 13:25:49 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id ge10so25966519lab.11 for ; Fri, 30 Jan 2015 13:25:49 -0800 (PST) X-Received: by 10.152.245.44 with SMTP id xl12mr8461092lac.81.1422653149059; Fri, 30 Jan 2015 13:25:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp414742lbj; Fri, 30 Jan 2015 13:25:48 -0800 (PST) X-Received: by 10.70.1.7 with SMTP id 7mr11897949pdi.74.1422653146506; Fri, 30 Jan 2015 13:25:46 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fh3si11329059pbb.187.2015.01.30.13.25.45; Fri, 30 Jan 2015 13:25:46 -0800 (PST) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763162AbbA3VZm (ORCPT + 5 others); Fri, 30 Jan 2015 16:25:42 -0500 Received: from mail-ie0-f181.google.com ([209.85.223.181]:63318 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763008AbbA3VZk (ORCPT ); Fri, 30 Jan 2015 16:25:40 -0500 Received: by mail-ie0-f181.google.com with SMTP id rp18so6246002iec.12 for ; Fri, 30 Jan 2015 13:25:39 -0800 (PST) X-Received: by 10.50.222.44 with SMTP id qj12mr1008674igc.48.1422653139661; Fri, 30 Jan 2015 13:25:39 -0800 (PST) Received: from quantum.home (pool-71-119-96-202.lsanca.fios.verizon.net. [71.119.96.202]) by mx.google.com with ESMTPSA id n4sm1779924igr.3.2015.01.30.13.25.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 13:25:38 -0800 (PST) From: Michael Turquette To: linux-kernel@vger.kernel.org Cc: Stephen Boyd , Michael Turquette , Paul Walmsley , Tero Kristo , Tony Lindgren , linux-omap@vger.kernel.org Subject: [PATCH 1/3] arm: omap2+ remove dead clock code Date: Fri, 30 Jan 2015 13:25:11 -0800 Message-Id: <1422653113-32688-2-git-send-email-mturquette@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422653113-32688-1-git-send-email-mturquette@linaro.org> References: <1422653113-32688-1-git-send-email-mturquette@linaro.org> Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mturquette@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove omap_clocks_register and dummy_ck. The former is not used anymore now that the statically defined clk stuctures are replaced with proper descriptors and registered with the framework. The dummy clock in arch/arm/mach-omap2 is made redundant by the OMAP3+ clock data that migrated to drivers/clk. An additional benefit to this clean-up is removing the references to clk-private.h which will be removed. Cc: Paul Walmsley Cc: Tero Kristo Cc: Tony Lindgren Signed-off-by: Michael Turquette --- Cc: linux-omap@vger.kernel.org arch/arm/mach-omap2/clock.c | 16 ---------------- arch/arm/mach-omap2/clock.h | 5 ----- arch/arm/mach-omap2/clock_common_data.c | 14 -------------- 3 files changed, 35 deletions(-) diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 6ad5b4d..d9c128e 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -630,21 +629,6 @@ const struct clk_hw_omap_ops clkhwops_wait = { }; /** - * omap_clocks_register - register an array of omap_clk - * @ocs: pointer to an array of omap_clk to register - */ -void __init omap_clocks_register(struct omap_clk oclks[], int cnt) -{ - struct omap_clk *c; - - for (c = oclks; c < oclks + cnt; c++) { - clkdev_add(&c->lk); - if (!__clk_init(NULL, c->lk.clk)) - omap2_init_clk_hw_omap_clocks(c->lk.clk); - } -} - -/** * omap2_clk_switch_mpurate_at_boot - switch ARM MPU rate by boot-time argument * @mpurate_ck_name: clk name of the clock to change rate * diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index c5b3a7f..6a10ce3 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h @@ -245,7 +245,6 @@ struct ti_clk_features { extern struct ti_clk_features ti_clk_features; extern const struct clkops clkops_omap2_dflt_wait; -extern const struct clkops clkops_dummy; extern const struct clkops clkops_omap2_dflt; extern struct clk_functions omap2_clk_functions; @@ -254,8 +253,6 @@ extern const struct clksel_rate gpt_32k_rates[]; extern const struct clksel_rate gpt_sys_rates[]; extern const struct clksel_rate gfx_l3_rates[]; extern const struct clksel_rate dsp_ick_rates[]; -extern struct clk_core dummy_ck_core; -extern struct clk dummy_ck; extern const struct clk_hw_omap_ops clkhwops_iclk_wait; extern const struct clk_hw_omap_ops clkhwops_wait; @@ -280,7 +277,5 @@ extern void __iomem *clk_memmaps[]; extern int omap2_clkops_enable_clkdm(struct clk_hw *hw); extern void omap2_clkops_disable_clkdm(struct clk_hw *hw); -extern void omap_clocks_register(struct omap_clk *oclks, int cnt); - void __init ti_clk_init_features(void); #endif diff --git a/arch/arm/mach-omap2/clock_common_data.c b/arch/arm/mach-omap2/clock_common_data.c index febd0a2..61b60df 100644 --- a/arch/arm/mach-omap2/clock_common_data.c +++ b/arch/arm/mach-omap2/clock_common_data.c @@ -16,7 +16,6 @@ * OMAP3xxx clock definition files. */ -#include #include "clock.h" /* clksel_rate data common to 24xx/343x */ @@ -114,16 +113,3 @@ const struct clksel_rate div31_1to31_rates[] = { { .div = 31, .val = 31, .flags = RATE_IN_4430 | RATE_IN_AM33XX }, { .div = 0 }, }; - -/* Clocks shared between various OMAP SoCs */ - -static struct clk_ops dummy_ck_ops = {}; - -struct clk_core dummy_ck_core = { - .name = "dummy_clk", - .ops = &dummy_ck_ops, - .flags = CLK_IS_BASIC, -}; -struct clk dummy_ck = { - .core = &dummy_ck_core, -};