Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: Provide dummy clk_unregister()

While there's no actual implementation behind it having the call to use
in drivers makes them feel neater from a driver author point of view. An
actual implementation can wait for someone who needs to use the function
in a real system.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
[mturquette@linaro.org: void return type instead of int -EINVAL]
Signed-off-by: Mike Turquette <mturquette@linaro.org>

authored by

Mark Brown and committed by
Mike Turquette
1df5c939 98d9986c

+11
+9
drivers/clk/clk.c
··· 1420 1420 } 1421 1421 EXPORT_SYMBOL_GPL(clk_register); 1422 1422 1423 + /** 1424 + * clk_unregister - unregister a currently registered clock 1425 + * @clk: clock to unregister 1426 + * 1427 + * Currently unimplemented. 1428 + */ 1429 + void clk_unregister(struct clk *clk) {} 1430 + EXPORT_SYMBOL_GPL(clk_unregister); 1431 + 1423 1432 /*** clk rate change notifiers ***/ 1424 1433 1425 1434 /**
+2
include/linux/clk-provider.h
··· 312 312 */ 313 313 struct clk *clk_register(struct device *dev, struct clk_hw *hw); 314 314 315 + void clk_unregister(struct clk *clk); 316 + 315 317 /* helper functions */ 316 318 const char *__clk_get_name(struct clk *clk); 317 319 struct clk_hw *__clk_get_hw(struct clk *clk);