aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-01-17 22:47:17 -0500
committerMike Turquette <mturquette@linaro.org>2014-01-27 14:43:19 -0500
commit0b7f04b868ec1230cf2dd698697dbc32a509ea4d (patch)
tree30007a7d1486e85ed30a54f5511e6c3a090ae85c /drivers/clk/clk.c
parent88d5fe037dad80bbaf64a5c6eccd9605fcedf2e0 (diff)
clk: Export more clk-provider functions
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> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 077106732550..5517944495d8 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -575,16 +575,19 @@ struct clk_hw *__clk_get_hw(struct clk *clk)
575{ 575{
576 return !clk ? NULL : clk->hw; 576 return !clk ? NULL : clk->hw;
577} 577}
578EXPORT_SYMBOL_GPL(__clk_get_hw);
578 579
579u8 __clk_get_num_parents(struct clk *clk) 580u8 __clk_get_num_parents(struct clk *clk)
580{ 581{
581 return !clk ? 0 : clk->num_parents; 582 return !clk ? 0 : clk->num_parents;
582} 583}
584EXPORT_SYMBOL_GPL(__clk_get_num_parents);
583 585
584struct clk *__clk_get_parent(struct clk *clk) 586struct clk *__clk_get_parent(struct clk *clk)
585{ 587{
586 return !clk ? NULL : clk->parent; 588 return !clk ? NULL : clk->parent;
587} 589}
590EXPORT_SYMBOL_GPL(__clk_get_parent);
588 591
589struct clk *clk_get_parent_by_index(struct clk *clk, u8 index) 592struct clk *clk_get_parent_by_index(struct clk *clk, u8 index)
590{ 593{
@@ -598,6 +601,7 @@ struct clk *clk_get_parent_by_index(struct clk *clk, u8 index)
598 else 601 else
599 return clk->parents[index]; 602 return clk->parents[index];
600} 603}
604EXPORT_SYMBOL_GPL(clk_get_parent_by_index);
601 605
602unsigned int __clk_get_enable_count(struct clk *clk) 606unsigned int __clk_get_enable_count(struct clk *clk)
603{ 607{
@@ -629,6 +633,7 @@ unsigned long __clk_get_rate(struct clk *clk)
629out: 633out:
630 return ret; 634 return ret;
631} 635}
636EXPORT_SYMBOL_GPL(__clk_get_rate);
632 637
633unsigned long __clk_get_accuracy(struct clk *clk) 638unsigned long __clk_get_accuracy(struct clk *clk)
634{ 639{
@@ -685,6 +690,7 @@ bool __clk_is_enabled(struct clk *clk)
685out: 690out:
686 return !!ret; 691 return !!ret;
687} 692}
693EXPORT_SYMBOL_GPL(__clk_is_enabled);
688 694
689static struct clk *__clk_lookup_subtree(const char *name, struct clk *clk) 695static struct clk *__clk_lookup_subtree(const char *name, struct clk *clk)
690{ 696{
@@ -776,6 +782,7 @@ out:
776 782
777 return best; 783 return best;
778} 784}
785EXPORT_SYMBOL_GPL(__clk_mux_determine_rate);
779 786
780/*** clk api ***/ 787/*** clk api ***/
781 788