clk: Move symbol export to proper location
authorThierry Reding <thierry.reding@gmail.com>
Tue, 3 Sep 2013 07:43:51 +0000 (09:43 +0200)
committerMike Turquette <mturquette@linaro.org>
Tue, 3 Sep 2013 20:41:29 +0000 (13:41 -0700)
The __clk_get_flags() symbol is exported immediately following the
clk_unprepare_unused_subtree() function. This is unusual, since a symbol
export typically follows body of the function that it exports.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c

index 02e75d4e0a7765cb6cca6ba22602b569821442d7..cc4cb6fd7d83d28997f328ce9df9f6871af104a5 100644 (file)
@@ -458,7 +458,6 @@ static void clk_unprepare_unused_subtree(struct clk *clk)
                        clk->ops->unprepare(clk->hw);
        }
 }
-EXPORT_SYMBOL_GPL(__clk_get_flags);
 
 /* caller must hold prepare_lock */
 static void clk_disable_unused_subtree(struct clk *clk)
@@ -607,6 +606,7 @@ unsigned long __clk_get_flags(struct clk *clk)
 {
        return !clk ? 0 : clk->flags;
 }
+EXPORT_SYMBOL_GPL(__clk_get_flags);
 
 bool __clk_is_prepared(struct clk *clk)
 {