Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187338
b: refs/heads/master
c: ed27684
h: refs/heads/master
v: v3
  • Loading branch information
Kukjin Kim authored and Ben Dooks committed Jan 15, 2010
1 parent 2c28c88 commit e4b96b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14235696d401e62f8f5740ca2fb917ab42b9fd18
refs/heads/master: ed276849bc6a8ad5bb0f9fa94fe8305ee67bb6c6
14 changes: 2 additions & 12 deletions trunk/arch/arm/plat-s5pc1xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ struct clk clk_54m = {
.rate = 54000000,
};

static int clk_default_setrate(struct clk *clk, unsigned long rate)
{
clk->rate = rate;
return 0;
}

static struct clk_ops clk_ops_default_setrate = {
.set_rate = clk_default_setrate,
};

static int clk_dummy_enable(struct clk *clk, int enable)
{
return 0;
Expand All @@ -86,7 +76,7 @@ struct clk clk_hd0 = {
.parent = NULL,
.ctrlbit = 0,
.enable = clk_dummy_enable,
.ops = &clk_ops_default_setrate,
.ops = &clk_ops_def_setrate,
};

struct clk clk_pd0 = {
Expand All @@ -95,7 +85,7 @@ struct clk clk_pd0 = {
.rate = 0,
.parent = NULL,
.ctrlbit = 0,
.ops = &clk_ops_default_setrate,
.ops = &clk_ops_def_setrate,
.enable = clk_dummy_enable,
};

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/plat-samsung/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ EXPORT_SYMBOL(clk_set_parent);

/* base clocks */

static int clk_default_setrate(struct clk *clk, unsigned long rate)
int clk_default_setrate(struct clk *clk, unsigned long rate)
{
clk->rate = rate;
return 0;
}

static struct clk_ops clk_ops_def_setrate = {
struct clk_ops clk_ops_def_setrate = {
.set_rate = clk_default_setrate,
};

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/plat-samsung/include/plat/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ extern struct clk clk_h2;
extern struct clk clk_27m;
extern struct clk clk_48m;

extern int clk_default_setrate(struct clk *clk, unsigned long rate);
extern struct clk_ops clk_ops_def_setrate;

/* exports for arch/arm/mach-s3c2410
*
* Please DO NOT use these outside of arch/arm/mach-s3c2410
Expand Down

0 comments on commit e4b96b8

Please sign in to comment.