diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-03-02 10:44:51 +0100 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-03-09 01:40:25 +0100 |
commit | f19a892cb4cebf8a395582cffaf71c7d4023bf99 (patch) | |
tree | b0a157e11fe8a9659ca88fdd98697d140b920786 | |
parent | 3d2d82d1be91e2f839bb655b0d4784c0df3716fb (diff) |
clk: sunxi: fix 'is_enabled' logic for ext. parents
-rw-r--r-- | drivers/clk/sunxi/clk-sunxi-ccu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi-ccu.c b/drivers/clk/sunxi/clk-sunxi-ccu.c index 0485404927..6980a56da0 100644 --- a/drivers/clk/sunxi/clk-sunxi-ccu.c +++ b/drivers/clk/sunxi/clk-sunxi-ccu.c @@ -119,7 +119,11 @@ bool clk_hw_is_enabled(const struct clk_hw *hw) if (ops->is_enabled) return ops->is_enabled((struct clk_hw *)hw); - return false; + /* + * If a clock doesn't have an 'is_enabled', we assume it's + * a fixed (i.e. always-enabled) clock. + */ + return true; } static int clk_hw_enable(struct clk_hw *hw) |