From 680df771745ee89c0299af704f46689e21253b70 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 16 Apr 2013 10:19:05 +0200 Subject: clk: add prototype for clk_is_enabled On MXS we need to poll the busy bit when changing a clock rate, but only when the parent clocks are enabled. This exposes the already present function clk_is_enabled which is suitable for this job. Signed-off-by: Sascha Hauer --- include/linux/clk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux/clk.h') diff --git a/include/linux/clk.h b/include/linux/clk.h index 718faa0fb9..38832ba942 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -216,6 +216,7 @@ struct clk *clk_gate(const char *name, const char *parent, void __iomem *reg, u8 shift); struct clk *clk_gate_inverted(const char *name, const char *parent, void __iomem *reg, u8 shift); +int clk_is_enabled(struct clk *clk); int clk_is_enabled_always(struct clk *clk); -- cgit v1.2.3