linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] clk: export __clk_get_flags for modular clock providers
@ 2013-04-15  6:59 Sebastian Hesselbarth
  2013-07-04 20:45 ` Luciano Coelho
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Hesselbarth @ 2013-04-15  6:59 UTC (permalink / raw)
  To: linux-arm-kernel

The common clock api provides some helpers for clk-providers but does
not export these helpers. This hinders clk-providers to be built as modules.
This patch adds __clk_get_flags() to the list of exported symbols.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
---
Cc: Mike Turquette <mturquette@linaro.org>
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-kernel at vger.kernel.org
---
 drivers/clk/clk.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index ed87b24..3e478b8 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -450,6 +450,7 @@ unsigned long __clk_get_flags(struct clk *clk)
 {
 	return !clk ? 0 : clk->flags;
 }
+EXPORT_SYMBOL_GPL(__clk_get_flags);
 
 bool __clk_is_enabled(struct clk *clk)
 {
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH RESEND] clk: export __clk_get_flags for modular clock providers
  2013-04-15  6:59 [PATCH RESEND] clk: export __clk_get_flags for modular clock providers Sebastian Hesselbarth
@ 2013-07-04 20:45 ` Luciano Coelho
  2013-07-30 23:03   ` Mike Turquette
  0 siblings, 1 reply; 3+ messages in thread
From: Luciano Coelho @ 2013-07-04 20:45 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

On 04/15/2013 09:59 AM, Sebastian Hesselbarth wrote:
> The common clock api provides some helpers for clk-providers but does
> not export these helpers. This hinders clk-providers to be built as modules.
> This patch adds __clk_get_flags() to the list of exported symbols.
>
> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> ---
> Cc: Mike Turquette <mturquette@linaro.org>
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: linux-kernel at vger.kernel.org
> ---
>   drivers/clk/clk.c |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index ed87b24..3e478b8 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -450,6 +450,7 @@ unsigned long __clk_get_flags(struct clk *clk)
>   {
>   	return !clk ? 0 : clk->flags;
>   }
> +EXPORT_SYMBOL_GPL(__clk_get_flags);
>
>   bool __clk_is_enabled(struct clk *clk)
>   {
>

I think this got merged slightly wrong.  The EXPORT_SYMBOL_GPL macro 
came under clk_unprepare_unused_subtree() instead of under 
__clk_get_flags():


Of course this is not that important, but it's a bit confusing when you 
look at the code.

--
Cheers,
Luca.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH RESEND] clk: export __clk_get_flags for modular clock providers
  2013-07-04 20:45 ` Luciano Coelho
@ 2013-07-30 23:03   ` Mike Turquette
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Turquette @ 2013-07-30 23:03 UTC (permalink / raw)
  To: linux-arm-kernel

Quoting Luciano Coelho (2013-07-04 13:45:27)
> Hi,
> 
> On 04/15/2013 09:59 AM, Sebastian Hesselbarth wrote:
> > The common clock api provides some helpers for clk-providers but does
> > not export these helpers. This hinders clk-providers to be built as modules.
> > This patch adds __clk_get_flags() to the list of exported symbols.
> >
> > Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> > ---
> > Cc: Mike Turquette <mturquette@linaro.org>
> > Cc: linux-arm-kernel at lists.infradead.org
> > Cc: linux-kernel at vger.kernel.org
> > ---
> >   drivers/clk/clk.c |    1 +
> >   1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> > index ed87b24..3e478b8 100644
> > --- a/drivers/clk/clk.c
> > +++ b/drivers/clk/clk.c
> > @@ -450,6 +450,7 @@ unsigned long __clk_get_flags(struct clk *clk)
> >   {
> >       return !clk ? 0 : clk->flags;
> >   }
> > +EXPORT_SYMBOL_GPL(__clk_get_flags);
> >
> >   bool __clk_is_enabled(struct clk *clk)
> >   {
> >
> 
> I think this got merged slightly wrong.  The EXPORT_SYMBOL_GPL macro 
> came under clk_unprepare_unused_subtree() instead of under 
> __clk_get_flags():
> 
> 
> Of course this is not that important, but it's a bit confusing when you 
> look at the code.

Thanks for pointing this out. I've fixed it up.

Regards,
Mike

> 
> --
> Cheers,
> Luca.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-30 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-15  6:59 [PATCH RESEND] clk: export __clk_get_flags for modular clock providers Sebastian Hesselbarth
2013-07-04 20:45 ` Luciano Coelho
2013-07-30 23:03   ` Mike Turquette

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).