From: Niels de Vos Date: Thu, 13 Dec 2012 12:12:25 +0000 (+0100) Subject: clk: export __clk_get_name for re-use in imx-ipu-v3 and others X-Git-Tag: next-20130218~5^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4895084c87ab0973308021d755596798160b682a;p=karo-tx-linux.git clk: export __clk_get_name for re-use in imx-ipu-v3 and others This fixes the following error when building for arm-imx: > ERROR: "__clk_get_name" [drivers/staging/imx-drm/ipu-v3/imx-ipu-v3.ko] undefined! > make[1]: *** [__modpost] Error 1 > make: *** [modules] Error 2 There are valid usecases to get the name of a clock, be it for debugging purposes or to register a children of a clock like done in this IPU driver. Therefore exporting __clk_get_name() and make it available for others makes sense. Reported-by: Peter Robinson CC: Sascha Hauer CC: Mike Turquette Signed-off-by: Niels de Vos Signed-off-by: Mike Turquette [mturquette@linaro.org: removal of inline made redundant by 65800b2] --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 9777466b81b9..eea70da02500 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -263,6 +263,7 @@ const char *__clk_get_name(struct clk *clk) { return !clk ? NULL : clk->name; } +EXPORT_SYMBOL_GPL(__clk_get_name); struct clk_hw *__clk_get_hw(struct clk *clk) {