* [PATCH] clk: Export more clk-provider functions
@ 2014-01-18 3:47 Stephen Boyd
2014-01-27 19:52 ` Mike Turquette
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Boyd @ 2014-01-18 3:47 UTC (permalink / raw)
To: linux-arm-kernel
Allow drivers to be compiled as modules by exporting more clock
provider functions.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
drivers/clk/clk.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 0b27b543dacf..2e83cf643db0 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -547,16 +547,19 @@ struct clk_hw *__clk_get_hw(struct clk *clk)
{
return !clk ? NULL : clk->hw;
}
+EXPORT_SYMBOL_GPL(__clk_get_hw);
u8 __clk_get_num_parents(struct clk *clk)
{
return !clk ? 0 : clk->num_parents;
}
+EXPORT_SYMBOL_GPL(__clk_get_num_parents);
struct clk *__clk_get_parent(struct clk *clk)
{
return !clk ? NULL : clk->parent;
}
+EXPORT_SYMBOL_GPL(__clk_get_parent);
struct clk *clk_get_parent_by_index(struct clk *clk, u8 index)
{
@@ -570,6 +573,7 @@ struct clk *clk_get_parent_by_index(struct clk *clk, u8 index)
else
return clk->parents[index];
}
+EXPORT_SYMBOL_GPL(clk_get_parent_by_index);
unsigned int __clk_get_enable_count(struct clk *clk)
{
@@ -601,6 +605,7 @@ unsigned long __clk_get_rate(struct clk *clk)
out:
return ret;
}
+EXPORT_SYMBOL_GPL(__clk_get_rate);
unsigned long __clk_get_flags(struct clk *clk)
{
@@ -649,6 +654,7 @@ bool __clk_is_enabled(struct clk *clk)
out:
return !!ret;
}
+EXPORT_SYMBOL_GPL(__clk_is_enabled);
static struct clk *__clk_lookup_subtree(const char *name, struct clk *clk)
{
@@ -740,6 +746,7 @@ out:
return best;
}
+EXPORT_SYMBOL_GPL(__clk_mux_determine_rate);
/*** clk api ***/
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] clk: Export more clk-provider functions
2014-01-18 3:47 [PATCH] clk: Export more clk-provider functions Stephen Boyd
@ 2014-01-27 19:52 ` Mike Turquette
0 siblings, 0 replies; 2+ messages in thread
From: Mike Turquette @ 2014-01-27 19:52 UTC (permalink / raw)
To: linux-arm-kernel
Quoting Stephen Boyd (2014-01-17 19:47:17)
> Allow drivers to be compiled as modules by exporting more clock
> provider functions.
>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
I've taken this into part 2 of my pull request for 3.14.
Regards,
Mike
> ---
> drivers/clk/clk.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index 0b27b543dacf..2e83cf643db0 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -547,16 +547,19 @@ struct clk_hw *__clk_get_hw(struct clk *clk)
> {
> return !clk ? NULL : clk->hw;
> }
> +EXPORT_SYMBOL_GPL(__clk_get_hw);
>
> u8 __clk_get_num_parents(struct clk *clk)
> {
> return !clk ? 0 : clk->num_parents;
> }
> +EXPORT_SYMBOL_GPL(__clk_get_num_parents);
>
> struct clk *__clk_get_parent(struct clk *clk)
> {
> return !clk ? NULL : clk->parent;
> }
> +EXPORT_SYMBOL_GPL(__clk_get_parent);
>
> struct clk *clk_get_parent_by_index(struct clk *clk, u8 index)
> {
> @@ -570,6 +573,7 @@ struct clk *clk_get_parent_by_index(struct clk *clk, u8 index)
> else
> return clk->parents[index];
> }
> +EXPORT_SYMBOL_GPL(clk_get_parent_by_index);
>
> unsigned int __clk_get_enable_count(struct clk *clk)
> {
> @@ -601,6 +605,7 @@ unsigned long __clk_get_rate(struct clk *clk)
> out:
> return ret;
> }
> +EXPORT_SYMBOL_GPL(__clk_get_rate);
>
> unsigned long __clk_get_flags(struct clk *clk)
> {
> @@ -649,6 +654,7 @@ bool __clk_is_enabled(struct clk *clk)
> out:
> return !!ret;
> }
> +EXPORT_SYMBOL_GPL(__clk_is_enabled);
>
> static struct clk *__clk_lookup_subtree(const char *name, struct clk *clk)
> {
> @@ -740,6 +746,7 @@ out:
>
> return best;
> }
> +EXPORT_SYMBOL_GPL(__clk_mux_determine_rate);
>
> /*** clk api ***/
>
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> hosted by The Linux Foundation
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-27 19:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-18 3:47 [PATCH] clk: Export more clk-provider functions Stephen Boyd
2014-01-27 19:52 ` 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).