All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tero Kristo <t-kristo@ti.com>
To: linux-omap@vger.kernel.org, paul@pwsan.com, tony@atomide.com,
	mturquette@linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 03/13] ARM: OMAP4+: dpll: remove cpu_is_omap44xx checks
Date: Wed, 2 Jul 2014 11:47:37 +0300	[thread overview]
Message-ID: <1404290867-6768-4-git-send-email-t-kristo@ti.com> (raw)
In-Reply-To: <1404290867-6768-1-git-send-email-t-kristo@ti.com>

These are unnecessary, as the clock code is only used on OMAP4+ platforms
through clock registrations. This also allows to eventually migrate the
clock type implementation under clock driver.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 arch/arm/mach-omap2/dpll44xx.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/dpll44xx.c b/arch/arm/mach-omap2/dpll44xx.c
index 52f9438..b071891 100644
--- a/arch/arm/mach-omap2/dpll44xx.c
+++ b/arch/arm/mach-omap2/dpll44xx.c
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/bitops.h>
 
-#include "soc.h"
 #include "clock.h"
 #include "clock44xx.h"
 #include "cm-regbits-44xx.h"
@@ -35,7 +34,7 @@ int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk)
 	u32 v;
 	u32 mask;
 
-	if (!clk || !clk->clksel_reg || !cpu_is_omap44xx())
+	if (!clk || !clk->clksel_reg)
 		return -EINVAL;
 
 	mask = clk->flags & CLOCK_CLKOUTX2 ?
@@ -54,7 +53,7 @@ void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk)
 	u32 v;
 	u32 mask;
 
-	if (!clk || !clk->clksel_reg || !cpu_is_omap44xx())
+	if (!clk || !clk->clksel_reg)
 		return;
 
 	mask = clk->flags & CLOCK_CLKOUTX2 ?
@@ -72,7 +71,7 @@ void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk)
 	u32 v;
 	u32 mask;
 
-	if (!clk || !clk->clksel_reg || !cpu_is_omap44xx())
+	if (!clk || !clk->clksel_reg)
 		return;
 
 	mask = clk->flags & CLOCK_CLKOUTX2 ?
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: t-kristo@ti.com (Tero Kristo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 03/13] ARM: OMAP4+: dpll: remove cpu_is_omap44xx checks
Date: Wed, 2 Jul 2014 11:47:37 +0300	[thread overview]
Message-ID: <1404290867-6768-4-git-send-email-t-kristo@ti.com> (raw)
In-Reply-To: <1404290867-6768-1-git-send-email-t-kristo@ti.com>

These are unnecessary, as the clock code is only used on OMAP4+ platforms
through clock registrations. This also allows to eventually migrate the
clock type implementation under clock driver.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 arch/arm/mach-omap2/dpll44xx.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/dpll44xx.c b/arch/arm/mach-omap2/dpll44xx.c
index 52f9438..b071891 100644
--- a/arch/arm/mach-omap2/dpll44xx.c
+++ b/arch/arm/mach-omap2/dpll44xx.c
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/bitops.h>
 
-#include "soc.h"
 #include "clock.h"
 #include "clock44xx.h"
 #include "cm-regbits-44xx.h"
@@ -35,7 +34,7 @@ int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk)
 	u32 v;
 	u32 mask;
 
-	if (!clk || !clk->clksel_reg || !cpu_is_omap44xx())
+	if (!clk || !clk->clksel_reg)
 		return -EINVAL;
 
 	mask = clk->flags & CLOCK_CLKOUTX2 ?
@@ -54,7 +53,7 @@ void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk)
 	u32 v;
 	u32 mask;
 
-	if (!clk || !clk->clksel_reg || !cpu_is_omap44xx())
+	if (!clk || !clk->clksel_reg)
 		return;
 
 	mask = clk->flags & CLOCK_CLKOUTX2 ?
@@ -72,7 +71,7 @@ void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk)
 	u32 v;
 	u32 mask;
 
-	if (!clk || !clk->clksel_reg || !cpu_is_omap44xx())
+	if (!clk || !clk->clksel_reg)
 		return;
 
 	mask = clk->flags & CLOCK_CLKOUTX2 ?
-- 
1.7.9.5

  parent reply	other threads:[~2014-07-02  8:47 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02  8:47 [PATCH 00/13] ARM: OMAP2+: clock cleanup series for 3.17 Tero Kristo
2014-07-02  8:47 ` Tero Kristo
2014-07-02  8:47 ` [PATCH 01/13] ARM: OMAP2+: clock/dpll: fix _dpll_test_fint arithmetics overflow Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-06 21:58   ` Paul Walmsley
2014-07-06 21:58     ` Paul Walmsley
2014-07-02  8:47 ` [PATCH 02/13] ARM: OMAP4+: clock: remove DEFINE_CLK_OMAP_HSDIVIDER macro Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` Tero Kristo [this message]
2014-07-02  8:47   ` [PATCH 03/13] ARM: OMAP4+: dpll: remove cpu_is_omap44xx checks Tero Kristo
2014-07-02  8:47 ` [PATCH 04/13] ARM: OMAP4+: dpll44xx: remove cm-regbits-44xx.h and clock44xx.h includes Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 05/13] ARM: OMAP2+: clock: introduce ti_clk_features flags Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 06/13] ARM: OMAP2+: clock: add fint values to the ti_clk_features struct Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 07/13] ARM: OMAP2+: clock/dpll: add private API for checking if DPLL is in bypass Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 08/13] ARM: OMAP2+: clock/dpll: convert bypass check to use clk_features Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 09/13] ARM: OMAP2+: clock/dpll: add jitter correction behind clk_features Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 10/13] ARM: OMAP2+: clock/interface: add a clk_features definition for idlest value Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 11/13] ARM: OMAP2+: clock/dpll: remove unused header includes from clkt_dpll.c Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 12/13] ARM: OMAP2+: clock/dpll: remove unused header includes from dpll3xxx.c Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-02  8:47 ` [PATCH 13/13] ARM: OMAP2+: clock/interface: remove some headers from clkt_iclk.c file Tero Kristo
2014-07-02  8:47   ` Tero Kristo
2014-07-13 13:53 ` [PATCH 00/13] ARM: OMAP2+: clock cleanup series for 3.17 Mike Turquette
2014-07-13 13:53   ` Mike Turquette
2014-07-15 20:11   ` Paul Walmsley
2014-07-15 20:11     ` Paul Walmsley

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=1404290867-6768-4-git-send-email-t-kristo@ti.com \
    --to=t-kristo@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mturquette@linaro.org \
    --cc=paul@pwsan.com \
    --cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.