From: Tero Kristo <t-kristo@ti.com>
To: Stephen Boyd <sboyd@codeaurora.org>,
Mike Turquette <mturquette@baylibre.com>
Cc: <linux-kernel@vger.kernel.org>, <linux-clk@vger.kernel.org>
Subject: Re: [PATCH 3/4] clk: ti: clk-3xxx: Remove unused structures
Date: Thu, 16 Jul 2015 11:42:40 +0300 [thread overview]
Message-ID: <55A76E80.104@ti.com> (raw)
In-Reply-To: <1436990899-13105-4-git-send-email-sboyd@codeaurora.org>
On 07/15/2015 11:08 PM, Stephen Boyd wrote:
> Sparse complains about these structures missing static, but they
> also don't look to be used. Remove them.
>
> drivers/clk/ti/clk-3xxx.c:74:30: warning: symbol 'clkhwops_omap3430es2_ssi_wait' was not declared. Should it be static?
> drivers/clk/ti/clk-3xxx.c:157:30: warning: symbol 'clkhwops_omap3430es2_hsotgusb_wait' was not declared. Should it be static?
Interesting, I wonder if the references to these have accidentally been
dropped at some point, namely (in 2012?) when we converted the clocks to
use common clock struct.
Anyway, I guess we can fix the ssi/usb clocks later if we find some
issues with them, its been at least 3 years since these have been used.
-Tero
>
> Cc: Tero Kristo <t-kristo@ti.com>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> ---
> drivers/clk/ti/clk-3xxx.c | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/drivers/clk/ti/clk-3xxx.c b/drivers/clk/ti/clk-3xxx.c
> index bd8291b53fd0..676ee8f6d813 100644
> --- a/drivers/clk/ti/clk-3xxx.c
> +++ b/drivers/clk/ti/clk-3xxx.c
> @@ -71,11 +71,6 @@ static void omap3430es2_clk_ssi_find_idlest(struct clk_hw_omap *clk,
> *idlest_val = OMAP34XX_CM_IDLEST_VAL;
> }
>
> -const struct clk_hw_omap_ops clkhwops_omap3430es2_ssi_wait = {
> - .find_idlest = omap3430es2_clk_ssi_find_idlest,
> - .find_companion = omap2_clk_dflt_find_companion,
> -};
> -
> const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_ssi_wait = {
> .allow_idle = omap2_clkt_iclk_allow_idle,
> .deny_idle = omap2_clkt_iclk_deny_idle,
> @@ -154,11 +149,6 @@ const struct clk_hw_omap_ops clkhwops_omap3430es2_iclk_hsotgusb_wait = {
> .find_companion = omap2_clk_dflt_find_companion,
> };
>
> -const struct clk_hw_omap_ops clkhwops_omap3430es2_hsotgusb_wait = {
> - .find_idlest = omap3430es2_clk_hsotgusb_find_idlest,
> - .find_companion = omap2_clk_dflt_find_companion,
> -};
> -
> /**
> * am35xx_clk_find_idlest - return clock ACK info for AM35XX IPSS
> * @clk: struct clk * being enabled
>
next prev parent reply other threads:[~2015-07-16 8:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 20:08 [PATCH 0/4] TI clk driver cleanups Stephen Boyd
2015-07-15 20:08 ` [PATCH 1/4] clk: ti: Check kzalloc() for failures Stephen Boyd
2015-07-15 20:08 ` [PATCH 2/4] clk: ti: Mark ti_clk_features static Stephen Boyd
2015-07-15 20:08 ` [PATCH 3/4] clk: ti: clk-3xxx: Remove unused structures Stephen Boyd
2015-07-16 8:42 ` Tero Kristo [this message]
2015-07-15 20:08 ` [PATCH 4/4] clk: ti: Force pointer to be __iomem Stephen Boyd
2015-07-16 8:43 ` [PATCH 0/4] TI clk driver cleanups Tero Kristo
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=55A76E80.104@ti.com \
--to=t-kristo@ti.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@codeaurora.org \
/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
Powered by JetHome