diff options
| author | Jerome Brunet <jbrunet@baylibre.com> | 2019-02-01 07:58:38 -0500 |
|---|---|---|
| committer | Neil Armstrong <narmstrong@baylibre.com> | 2019-02-02 11:42:02 -0500 |
| commit | 12aa377bf80cb3a38053dba70eaa7e39975849b2 (patch) | |
| tree | 1bdfbbe695fdb9941e0b820f3ced9046f5b1fa52 | |
| parent | 439a6bb5bfe775f9aa18f267a54878e0ac7f3d49 (diff) | |
clk: export some clk_hw function symbols for module drivers
clk-provider.h provides clk_hw_is_prepared(), clk_hw_is_enabled() and
clk_hw_is_prepared() but these symbols are not exported for the
modules which prevents a clock driver using them to be compiled as
a module. Export them to fix the problem.
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lkml.kernel.org/r/20190201125841.26785-2-jbrunet@baylibre.com
| -rw-r--r-- | drivers/clk/clk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 75d13c0eff12..5558af12f9db 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
| @@ -394,16 +394,19 @@ bool clk_hw_is_prepared(const struct clk_hw *hw) | |||
| 394 | { | 394 | { |
| 395 | return clk_core_is_prepared(hw->core); | 395 | return clk_core_is_prepared(hw->core); |
| 396 | } | 396 | } |
| 397 | EXPORT_SYMBOL_GPL(clk_hw_is_prepared); | ||
| 397 | 398 | ||
| 398 | bool clk_hw_rate_is_protected(const struct clk_hw *hw) | 399 | bool clk_hw_rate_is_protected(const struct clk_hw *hw) |
| 399 | { | 400 | { |
| 400 | return clk_core_rate_is_protected(hw->core); | 401 | return clk_core_rate_is_protected(hw->core); |
| 401 | } | 402 | } |
| 403 | EXPORT_SYMBOL_GPL(clk_hw_rate_is_protected); | ||
| 402 | 404 | ||
| 403 | bool clk_hw_is_enabled(const struct clk_hw *hw) | 405 | bool clk_hw_is_enabled(const struct clk_hw *hw) |
| 404 | { | 406 | { |
| 405 | return clk_core_is_enabled(hw->core); | 407 | return clk_core_is_enabled(hw->core); |
| 406 | } | 408 | } |
| 409 | EXPORT_SYMBOL_GPL(clk_hw_is_enabled); | ||
| 407 | 410 | ||
| 408 | bool __clk_is_enabled(struct clk *clk) | 411 | bool __clk_is_enabled(struct clk *clk) |
| 409 | { | 412 | { |
