diff options
| author | Stephen Boyd <sboyd@codeaurora.org> | 2015-10-21 19:26:44 -0400 |
|---|---|---|
| committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-10-23 16:34:46 -0400 |
| commit | acba7855dda0d6e7d87dec2f89b4d9eebb36bbe2 (patch) | |
| tree | 612cea941c843e5fc3f99c2e8c1b4ae54a9b7f2d | |
| parent | f63d19ef52aa66e97fca2425974845177ce02b0a (diff) | |
clk: Remove clk_{register,unregister}_multiplier()
These APIs aren't used, so remove them. This can be reverted if
we get a user at some point.
Reviewed-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Suggested-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
| -rw-r--r-- | drivers/clk/clk-multiplier.c | 51 | ||||
| -rw-r--r-- | include/linux/clk-provider.h | 7 |
2 files changed, 0 insertions, 58 deletions
diff --git a/drivers/clk/clk-multiplier.c b/drivers/clk/clk-multiplier.c index 43ec269fcbff..fe7806506bf3 100644 --- a/drivers/clk/clk-multiplier.c +++ b/drivers/clk/clk-multiplier.c | |||
| @@ -128,54 +128,3 @@ const struct clk_ops clk_multiplier_ops = { | |||
| 128 | .set_rate = clk_multiplier_set_rate, | 128 | .set_rate = clk_multiplier_set_rate, |
| 129 | }; | 129 | }; |
| 130 | EXPORT_SYMBOL_GPL(clk_multiplier_ops); | 130 | EXPORT_SYMBOL_GPL(clk_multiplier_ops); |
| 131 | |||
| 132 | struct clk *clk_register_multiplier(struct device *dev, const char *name, | ||
| 133 | const char *parent_name, | ||
| 134 | unsigned long flags, | ||
| 135 | void __iomem *reg, u8 shift, u8 width, | ||
| 136 | u8 clk_mult_flags, spinlock_t *lock) | ||
| 137 | { | ||
| 138 | struct clk_init_data init; | ||
| 139 | struct clk_multiplier *mult; | ||
| 140 | struct clk *clk; | ||
| 141 | |||
| 142 | mult = kmalloc(sizeof(*mult), GFP_KERNEL); | ||
| 143 | if (!mult) | ||
| 144 | return ERR_PTR(-ENOMEM); | ||
| 145 | |||
| 146 | init.name = name; | ||
| 147 | init.ops = &clk_multiplier_ops; | ||
| 148 | init.flags = flags | CLK_IS_BASIC; | ||
| 149 | init.parent_names = &parent_name; | ||
| 150 | init.num_parents = 1; | ||
| 151 | |||
| 152 | mult->reg = reg; | ||
| 153 | mult->shift = shift; | ||
| 154 | mult->width = width; | ||
| 155 | mult->flags = clk_mult_flags; | ||
| 156 | mult->lock = lock; | ||
| 157 | mult->hw.init = &init; | ||
| 158 | |||
| 159 | clk = clk_register(dev, &mult->hw); | ||
| 160 | if (IS_ERR(clk)) | ||
| 161 | kfree(mult); | ||
| 162 | |||
| 163 | return clk; | ||
| 164 | } | ||
| 165 | EXPORT_SYMBOL_GPL(clk_register_multiplier); | ||
| 166 | |||
| 167 | void clk_unregister_multiplier(struct clk *clk) | ||
| 168 | { | ||
| 169 | struct clk_multiplier *mult; | ||
| 170 | struct clk_hw *hw; | ||
| 171 | |||
| 172 | hw = __clk_get_hw(clk); | ||
| 173 | if (!hw) | ||
| 174 | return; | ||
| 175 | |||
| 176 | mult = to_clk_multiplier(hw); | ||
| 177 | |||
| 178 | clk_unregister(clk); | ||
| 179 | kfree(mult); | ||
| 180 | } | ||
| 181 | EXPORT_SYMBOL_GPL(clk_unregister_multiplier); | ||
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index e9a4d1ea556e..837cd7c7c8a7 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h | |||
| @@ -554,13 +554,6 @@ struct clk_multiplier { | |||
| 554 | 554 | ||
| 555 | extern const struct clk_ops clk_multiplier_ops; | 555 | extern const struct clk_ops clk_multiplier_ops; |
| 556 | 556 | ||
| 557 | struct clk *clk_register_multiplier(struct device *dev, const char *name, | ||
| 558 | const char *parent_name, | ||
| 559 | unsigned long flags, | ||
| 560 | void __iomem *reg, u8 shift, u8 width, | ||
| 561 | u8 clk_mult_flags, spinlock_t *lock); | ||
| 562 | void clk_unregister_multiplier(struct clk *clk); | ||
| 563 | |||
| 564 | /*** | 557 | /*** |
| 565 | * struct clk_composite - aggregate clock of mux, divider and gate clocks | 558 | * struct clk_composite - aggregate clock of mux, divider and gate clocks |
| 566 | * | 559 | * |
