linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@codeaurora.org>
Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
	Rhyland Klein <rklein@nvidia.com>,
	Thierry Reding <treding@nvidia.com>
Subject: [PATCH 17/41] clk: tegra: Remove CLK_IS_ROOT
Date: Tue,  1 Mar 2016 11:00:02 -0800	[thread overview]
Message-ID: <1456858826-28541-18-git-send-email-sboyd@codeaurora.org> (raw)
In-Reply-To: <1456858826-28541-1-git-send-email-sboyd@codeaurora.org>

This flag is a no-op now. Remove usage of the flag.

Cc: Rhyland Klein <rklein@nvidia.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 drivers/clk/tegra/clk-audio-sync.c  |  2 +-
 drivers/clk/tegra/clk-dfll.c        |  1 -
 drivers/clk/tegra/clk-tegra-fixed.c |  6 ++----
 drivers/clk/tegra/clk-tegra114.c    |  3 +--
 drivers/clk/tegra/clk-tegra20.c     | 10 ++++------
 5 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/drivers/clk/tegra/clk-audio-sync.c b/drivers/clk/tegra/clk-audio-sync.c
index c0f7843e80e6..92d04ce2dee6 100644
--- a/drivers/clk/tegra/clk-audio-sync.c
+++ b/drivers/clk/tegra/clk-audio-sync.c
@@ -72,7 +72,7 @@ struct clk *tegra_clk_register_sync_source(const char *name,
 
 	init.ops = &tegra_clk_sync_source_ops;
 	init.name = name;
-	init.flags = CLK_IS_ROOT;
+	init.flags = 0;
 	init.parent_names = NULL;
 	init.num_parents = 0;
 
diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll.c
index 86a307b17eb0..19bfa07e24b1 100644
--- a/drivers/clk/tegra/clk-dfll.c
+++ b/drivers/clk/tegra/clk-dfll.c
@@ -995,7 +995,6 @@ static const struct clk_ops dfll_clk_ops = {
 };
 
 static struct clk_init_data dfll_clk_init_data = {
-	.flags		= CLK_IS_ROOT,
 	.ops		= &dfll_clk_ops,
 	.num_parents	= 0,
 };
diff --git a/drivers/clk/tegra/clk-tegra-fixed.c b/drivers/clk/tegra/clk-tegra-fixed.c
index da0b5941c89f..d64ec7a1b976 100644
--- a/drivers/clk/tegra/clk-tegra-fixed.c
+++ b/drivers/clk/tegra/clk-tegra-fixed.c
@@ -52,8 +52,7 @@ int __init tegra_osc_clk_init(void __iomem *clk_base, struct tegra_clk *clks,
 		return -EINVAL;
 	}
 
-	osc = clk_register_fixed_rate(NULL, "osc", NULL, CLK_IS_ROOT,
-				      *osc_freq);
+	osc = clk_register_fixed_rate(NULL, "osc", NULL, 0, *osc_freq);
 
 	dt_clk = tegra_lookup_dt_id(tegra_clk_clk_m, clks);
 	if (!dt_clk)
@@ -88,8 +87,7 @@ void __init tegra_fixed_clk_init(struct tegra_clk *tegra_clks)
 	/* clk_32k */
 	dt_clk = tegra_lookup_dt_id(tegra_clk_clk_32k, tegra_clks);
 	if (dt_clk) {
-		clk = clk_register_fixed_rate(NULL, "clk_32k", NULL,
-					CLK_IS_ROOT, 32768);
+		clk = clk_register_fixed_rate(NULL, "clk_32k", NULL, 0, 32768);
 		*dt_clk = clk;
 	}
 
diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
index 4a24aa4bbdea..df47ec3169c3 100644
--- a/drivers/clk/tegra/clk-tegra114.c
+++ b/drivers/clk/tegra/clk-tegra114.c
@@ -972,8 +972,7 @@ static void __init tegra114_fixed_clk_init(void __iomem *clk_base)
 	struct clk *clk;
 
 	/* clk_32k */
-	clk = clk_register_fixed_rate(NULL, "clk_32k", NULL, CLK_IS_ROOT,
-				      32768);
+	clk = clk_register_fixed_rate(NULL, "clk_32k", NULL, 0, 32768);
 	clks[TEGRA114_CLK_CLK_32K] = clk;
 
 	/* clk_m_div2 */
diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c
index 7a48e986c4c9..7ad63837694f 100644
--- a/drivers/clk/tegra/clk-tegra20.c
+++ b/drivers/clk/tegra/clk-tegra20.c
@@ -837,15 +837,13 @@ static void __init tegra20_periph_clk_init(void)
 	clks[TEGRA20_CLK_PEX] = clk;
 
 	/* cdev1 */
-	clk = clk_register_fixed_rate(NULL, "cdev1_fixed", NULL, CLK_IS_ROOT,
-				      26000000);
+	clk = clk_register_fixed_rate(NULL, "cdev1_fixed", NULL, 0, 26000000);
 	clk = tegra_clk_register_periph_gate("cdev1", "cdev1_fixed", 0,
 				    clk_base, 0, 94, periph_clk_enb_refcnt);
 	clks[TEGRA20_CLK_CDEV1] = clk;
 
 	/* cdev2 */
-	clk = clk_register_fixed_rate(NULL, "cdev2_fixed", NULL, CLK_IS_ROOT,
-				      26000000);
+	clk = clk_register_fixed_rate(NULL, "cdev2_fixed", NULL, 0, 26000000);
 	clk = tegra_clk_register_periph_gate("cdev2", "cdev2_fixed", 0,
 				    clk_base, 0, 93, periph_clk_enb_refcnt);
 	clks[TEGRA20_CLK_CDEV2] = clk;
@@ -879,8 +877,8 @@ static void __init tegra20_osc_clk_init(void)
 	input_freq = tegra20_clk_measure_input_freq();
 
 	/* clk_m */
-	clk = clk_register_fixed_rate(NULL, "clk_m", NULL, CLK_IS_ROOT |
-				      CLK_IGNORE_UNUSED, input_freq);
+	clk = clk_register_fixed_rate(NULL, "clk_m", NULL, CLK_IGNORE_UNUSED,
+				      input_freq);
 	clks[TEGRA20_CLK_CLK_M] = clk;
 
 	/* pll_ref */
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

  parent reply	other threads:[~2016-03-01 19:12 UTC|newest]

Thread overview: 100+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-01 18:59 [PATCH 00/41] Remove CLK_IS_ROOT from drivers/clk Stephen Boyd
2016-03-01 18:59 ` [PATCH 01/41] clk: at91: Remove CLK_IS_ROOT Stephen Boyd
2016-03-01 22:15   ` Boris Brezillon
2016-03-01 18:59 ` [PATCH 02/41] clk: bcm: " Stephen Boyd
2016-03-02 21:59   ` Eric Anholt
2016-03-01 18:59 ` [PATCH 03/41] clk: hisilicon: " Stephen Boyd
2016-03-02  1:45   ` Leo Yan
2016-03-03  1:43   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 04/41] clk: imx: " Stephen Boyd
2016-03-02  2:42   ` Shawn Guo
2016-03-01 18:59 ` [PATCH 05/41] clk: mediatek: " Stephen Boyd
2016-03-02  1:58   ` James Liao
2016-03-03  1:44   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 06/41] clk: meson: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 07/41] clk: mmp: " Stephen Boyd
2016-03-01 18:59 ` [PATCH 08/41] clk: mvebu: " Stephen Boyd
2016-03-03 10:27   ` Gregory CLEMENT
2016-03-03 19:26   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 09/41] clk: mxs: " Stephen Boyd
2016-03-02  2:42   ` Shawn Guo
2016-03-03  1:45   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 10/41] clk: nxp: " Stephen Boyd
2016-03-01 20:06   ` Joachim Eastwood
2016-03-03  1:45   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 11/41] clk: pxa: " Stephen Boyd
2016-03-01 19:27   ` Robert Jarzmik
2016-03-03  1:46   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 12/41] clk: qcom: " Stephen Boyd
2016-03-04 20:53   ` Stephen Boyd
2016-03-01 18:59 ` [PATCH 13/41] clk: samsung: " Stephen Boyd
2016-03-02 10:26   ` Sylwester Nawrocki
2016-03-01 18:59 ` [PATCH 14/41] clk: sirf: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 15/41] clk: spear: " Stephen Boyd
2016-03-02  2:54   ` Viresh Kumar
2016-03-03  1:47   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 16/41] clk: sunxi: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` Stephen Boyd [this message]
2016-03-02 14:55   ` [PATCH 17/41] clk: tegra: " Thierry Reding
2016-03-02 16:50   ` Rhyland Klein
2016-03-03  1:47   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 18/41] clk: ti: " Stephen Boyd
2016-03-02 15:32   ` Tero Kristo
2016-03-03  1:47   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 19/41] clk: ux500: " Stephen Boyd
2016-03-01 20:05   ` Ulf Hansson
2016-03-03  1:48   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 20/41] clk: versatile: " Stephen Boyd
2016-03-05 16:49   ` Linus Walleij
2016-03-15 22:19   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 21/41] clk: x86: " Stephen Boyd
2016-03-03 10:34   ` Mika Westerberg
2016-03-01 19:00 ` [PATCH 22/41] clk: x86: Remove clkdev.h and clk.h includes Stephen Boyd
2016-03-03 10:35   ` Mika Westerberg
2016-03-01 19:00 ` [PATCH 23/41] clk: zte: Remove CLK_IS_ROOT Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 24/41] clk: zynq: " Stephen Boyd
2016-03-02  3:33   ` Sören Brinkmann
2016-03-03  1:48   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 25/41] clk: clps711x: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 26/41] clk: efm32gg: " Stephen Boyd
2016-03-01 19:26   ` Uwe Kleine-König
2016-03-01 19:37     ` Stephen Boyd
2016-03-01 19:52   ` Uwe Kleine-König
2016-03-03  1:48   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 27/41] clk: fixed-rate: " Stephen Boyd
2016-03-04 22:31   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 28/41] clk: ls1x: " Stephen Boyd
2016-03-01 19:00 ` [PATCH 29/41] clk: max77{686,802}: " Stephen Boyd
2016-03-07 13:46   ` Javier Martinez Canillas
2016-03-01 19:00 ` [PATCH 30/41] clk: mb86s7x: " Stephen Boyd
2016-03-03 11:42   ` Jassi Brar
2016-03-01 19:00 ` [PATCH 31/41] clk: nspire: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 32/41] clk: palmas: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 33/41] clk: pwm: " Stephen Boyd
2016-03-02  9:37   ` Philipp Zabel
2016-03-03  1:50   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 34/41] clk: qoriq: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 35/41] clk: rk808: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 36/41] clk: s2mps11: " Stephen Boyd
2016-03-02  2:25   ` Andi Shyti
2016-03-03  1:50   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 37/41] clk: scpi: " Stephen Boyd
2016-03-02  9:34   ` Sudeep Holla
2016-03-03  1:51   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 38/41] clk: si5{14,351,70}: " Stephen Boyd
2016-03-02  3:34   ` Sören Brinkmann
2016-03-01 19:00 ` [PATCH 39/41] clk: twl6040: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 40/41] clk: wm831x: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd
2016-03-01 19:00 ` [PATCH 41/41] clk: xgene: " Stephen Boyd
2016-04-15 23:54   ` Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456858826-28541-18-git-send-email-sboyd@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=rklein@nvidia.com \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).