diff options
Diffstat (limited to 'drivers/clk/clk-mux.c')
-rw-r--r-- | drivers/clk/clk-mux.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 6e1ecf94bf58..69a094c3783d 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c | |||
@@ -177,3 +177,19 @@ struct clk *clk_register_mux(struct device *dev, const char *name, | |||
177 | NULL, lock); | 177 | NULL, lock); |
178 | } | 178 | } |
179 | EXPORT_SYMBOL_GPL(clk_register_mux); | 179 | EXPORT_SYMBOL_GPL(clk_register_mux); |
180 | |||
181 | void clk_unregister_mux(struct clk *clk) | ||
182 | { | ||
183 | struct clk_mux *mux; | ||
184 | struct clk_hw *hw; | ||
185 | |||
186 | hw = __clk_get_hw(clk); | ||
187 | if (!hw) | ||
188 | return; | ||
189 | |||
190 | mux = to_clk_mux(hw); | ||
191 | |||
192 | clk_unregister(clk); | ||
193 | kfree(mux); | ||
194 | } | ||
195 | EXPORT_SYMBOL_GPL(clk_unregister_mux); | ||