Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106856
b: refs/heads/master
c: de92542
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jul 28, 2008
1 parent 5e75c89 commit 8d5784b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 152fe36ebee82b63a9c6e510c52aaa82f4b1940d
refs/heads/master: de9254263b8c8b1809520a1009dd516e41976519
17 changes: 17 additions & 0 deletions trunk/include/asm-sh/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <linux/list.h>
#include <linux/seq_file.h>
#include <linux/clk.h>
#include <linux/err.h>

struct clk;

Expand Down Expand Up @@ -47,6 +48,22 @@ void clk_recalc_rate(struct clk *);
int clk_register(struct clk *);
void clk_unregister(struct clk *);

static inline int clk_always_enable(const char *id)
{
struct clk *clk;
int ret;

clk = clk_get(NULL, id);
if (IS_ERR(clk))
return PTR_ERR(clk);

ret = clk_enable(clk);
if (ret)
clk_put(clk);

return ret;
}

/* the exported API, in addition to clk_set_rate */
/**
* clk_set_rate_ex - set the clock rate for a clock source, with additional parameter
Expand Down

0 comments on commit 8d5784b

Please sign in to comment.