projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clk: Add clk_hw_is_enabled() for use by clk providers
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
clk
/
clk.c
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 2eae76f21d6f9215e281247f42426f927892cb66..f13c3f4228d4d51d5649c3705fd565b4aac82913 100644
(file)
--- a/
drivers/clk/clk.c
+++ b/
drivers/clk/clk.c
@@
-427,6
+427,11
@@
bool clk_hw_is_prepared(const struct clk_hw *hw)
return clk_core_is_prepared(hw->core);
}
+bool clk_hw_is_enabled(const struct clk_hw *hw)
+{
+ return clk_core_is_enabled(hw->core);
+}
+
bool __clk_is_enabled(struct clk *clk)
{
if (!clk)