From: Tony Lindgren <tony@atomide.com>
To: Michael Turquette <mturquette@linaro.org>
Cc: linux-kernel@vger.kernel.org, Stephen Boyd <sboyd@codeaurora.org>,
Paul Walmsley <paul@pwsan.com>, Tero Kristo <t-kristo@ti.com>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/3] arm: omap2+ remove dead clock code
Date: Fri, 30 Jan 2015 13:51:24 -0800 [thread overview]
Message-ID: <20150130215123.GC16250@atomide.com> (raw)
In-Reply-To: <1422653113-32688-2-git-send-email-mturquette@linaro.org>
* Michael Turquette <mturquette@linaro.org> [150130 13:28]:
> 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.
Right on! Assuming things sitll build and boot, please feel free to
apply this via your clock patches:
Acked-by: Tony Lindgren <tony@atomide.com>
> Cc: Paul Walmsley <paul@pwsan.com>
> Cc: Tero Kristo <t-kristo@ti.com>
> Cc: Tony Lindgren <tony@atomide.com>
> Signed-off-by: Michael Turquette <mturquette@linaro.org>
> ---
> 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 <linux/clk-provider.h>
> #include <linux/io.h>
> #include <linux/bitops.h>
> -#include <linux/clk-private.h>
> #include <asm/cpu.h>
>
> #include <trace/events/power.h>
> @@ -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 <linux/clk-private.h>
> #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,
> -};
> --
> 1.9.1
>
next prev parent reply other threads:[~2015-01-30 21:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-30 21:25 [PATCH 0/3] remove clk-private.h Michael Turquette
2015-01-30 21:25 ` [PATCH 1/3] arm: omap2+ remove dead clock code Michael Turquette
2015-01-30 21:51 ` Tony Lindgren [this message]
2015-01-30 21:25 ` [PATCH 2/3] pci: xgene: do not use clk-private.h Michael Turquette
2015-01-30 21:32 ` Stephen Boyd
2015-01-30 21:25 ` [PATCH 3/3] clk: remove clk-private.h Michael Turquette
2015-01-30 23:48 ` Stephen Boyd
2015-01-31 1:18 ` Mike Turquette
2015-02-02 14:01 ` Geert Uytterhoeven
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=20150130215123.GC16250@atomide.com \
--to=tony@atomide.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=paul@pwsan.com \
--cc=sboyd@codeaurora.org \
--cc=t-kristo@ti.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.