9
0
Fork 0

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 <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-04-16 10:19:05 +02:00
parent 707fb7ada5
commit 680df77174
2 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,7 @@ int clk_register(struct clk *clk)
return 0;
}
static int clk_is_enabled(struct clk *clk)
int clk_is_enabled(struct clk *clk)
{
int enabled;

View File

@ -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);