[PATCH] clk: Add missing of_clk_set_defaults export

Sylwester Nawrocki s.nawrocki at samsung.com
Mon Aug 4 03:48:58 PDT 2014


The of_clk_set_defaults() function is used in subsystems which can
be built as module. Add the missing symbol export entry so there
is no build errors like:
"ERROR: "of_clk_set_defaults" [drivers/i2c/i2c-core.ko] undefined!".

Fixes commit: 86be408bfbd846fab3c4ac21d6f9298bd2e4b790
"clk: Support for clock parents and rates assigned from device tree"

Reported-by: kbuild test robot <fengguang.wu at intel.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki at samsung.com>
---
 drivers/clk/clk-conf.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk-conf.c b/drivers/clk/clk-conf.c
index 4e1bda7..aad4796 100644
--- a/drivers/clk/clk-conf.c
+++ b/drivers/clk/clk-conf.c
@@ -141,3 +141,4 @@ int of_clk_set_defaults(struct device_node *node, bool clk_supplier)

 	return __set_clk_rates(node, clk_supplier);
 }
+EXPORT_SYMBOL_GPL(of_clk_set_defaults);
--
1.7.9.5




More information about the linux-arm-kernel mailing list