From: Stephen Boyd <sboyd@codeaurora.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michael Turquette <mturquette@baylibre.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-clk <linux-clk@vger.kernel.org>,
Denis Efremov <yefremov.denis@gmail.com>
Subject: Re: [PATCH 2/2] clk: fixed-rate: Remove export symbol on setup function
Date: Tue, 16 Aug 2016 10:31:23 -0700 [thread overview]
Message-ID: <20160816173123.GA361@codeaurora.org> (raw)
In-Reply-To: <CAMuHMdU5USf7SHpg5NXJ=G-RBhX4q+5DAQBYUaMYxJk07vPMOg@mail.gmail.com>
On 08/16, Geert Uytterhoeven wrote:
> Hi Stephen,
>
> On Sat, Aug 13, 2016 at 3:50 AM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> > This function is only called by builtin code, but we always
> > exported it and had marked it as __init before commit
> > e4eda8e0654c (clk: remove exported function from __init section,
> > 2013-01-06) removed that marking. Given that it isn't used by
> > modules, lets unexport it and add back __init.
> >
> > Cc: Denis Efremov <yefremov.denis@gmail.com>
> > Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> > ---
> > drivers/clk/clk-fixed-rate.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c
> > index c735272ed706..b5c46b3f8764 100644
> > --- a/drivers/clk/clk-fixed-rate.c
> > +++ b/drivers/clk/clk-fixed-rate.c
> > @@ -190,11 +190,10 @@ static struct clk *_of_fixed_clk_setup(struct device_node *node)
> > /**
> > * of_fixed_clk_setup() - Setup function for simple fixed rate clock
> > */
> > -void of_fixed_clk_setup(struct device_node *node)
> > +void __init of_fixed_clk_setup(struct device_node *node)
> > {
> > _of_fixed_clk_setup(node);
> > }
> > -EXPORT_SYMBOL_GPL(of_fixed_clk_setup);
> > CLK_OF_DECLARE(fixed_clk, "fixed-clock", of_fixed_clk_setup);
>
> This function is needed to instantiate clocks from DT overlays,
> which I'm using with out-of-tree "clk: add generic driver for fixed rate clock".
>
I think Ricardo's latest series should make that work for you
with platform device drivers?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2016-08-16 17:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-13 1:50 [PATCH 1/2] clk: fixed-factor: Remove export symbol on setup function Stephen Boyd
2016-08-13 1:50 ` [PATCH 2/2] clk: fixed-rate: " Stephen Boyd
2016-08-15 22:08 ` Stephen Boyd
2016-08-16 12:24 ` Geert Uytterhoeven
2016-08-16 17:31 ` Stephen Boyd [this message]
2016-08-17 20:24 ` Geert Uytterhoeven
2016-08-15 22:08 ` [PATCH 1/2] clk: fixed-factor: " 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=20160816173123.GA361@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=geert@linux-m68k.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=yefremov.denis@gmail.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).