From f19a892cb4cebf8a395582cffaf71c7d4023bf99 Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Thu, 2 Mar 2017 10:44:51 +0100 Subject: clk: sunxi: fix 'is_enabled' logic for ext. parents --- drivers/clk/sunxi/clk-sunxi-ccu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3