Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146815
b: refs/heads/master
c: a02cb23
h: refs/heads/master
i:
  146813: adac9ce
  146811: af8eae2
  146807: a06abb0
  146799: 7ef62ab
  146783: 70dff1b
  146751: a9a14bb
  146687: d910d3f
v: v3
  • Loading branch information
Paul Mundt committed May 11, 2009
1 parent bdee0bb commit fa0857f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 26 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: b68d8201433a91cabbcbeae48b53d8c1c426433a
refs/heads/master: a02cb230bb4fca04f091746c593de720a0e3a94a
2 changes: 1 addition & 1 deletion trunk/arch/sh/include/asm/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int __init arch_clk_init(void);

/* arch/sh/kernel/cpu/clock.c */
int clk_init(void);

unsigned long followparent_recalc(struct clk *clk);
void clk_recalc_rate(struct clk *);

int clk_register(struct clk *);
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/sh/kernel/cpu/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ static void propagate_rate(struct clk *clk)
}
}

/* Used for clocks that always have same value as the parent clock */
unsigned long followparent_recalc(struct clk *clk)
{
return clk->parent->rate;
}

static void __clk_init(struct clk *clk)
{
/*
Expand Down
7 changes: 1 addition & 6 deletions trunk/arch/sh/kernel/cpu/sh2/clock-sh7619.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,8 @@ static struct clk_ops sh7619_bus_clk_ops = {
.recalc = bus_clk_recalc,
};

static unsigned long cpu_clk_recalc(struct clk *clk)
{
return clk->parent->rate;
}

static struct clk_ops sh7619_cpu_clk_ops = {
.recalc = cpu_clk_recalc,
.recalc = followparent_recalc,
};

static struct clk_ops *sh7619_clk_ops[] = {
Expand Down
7 changes: 1 addition & 6 deletions trunk/arch/sh/kernel/cpu/sh2a/clock-sh7203.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,8 @@ static struct clk_ops sh7203_bus_clk_ops = {
.recalc = bus_clk_recalc,
};

static unsigned long cpu_clk_recalc(struct clk *clk)
{
return clk->parent->rate;
}

static struct clk_ops sh7203_cpu_clk_ops = {
.recalc = cpu_clk_recalc,
.recalc = followparent_recalc,
};

static struct clk_ops *sh7203_clk_ops[] = {
Expand Down
7 changes: 1 addition & 6 deletions trunk/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,15 +646,10 @@ static void sh7722_mstpcr_disable(struct clk *clk)
sh7722_mstpcr_start_stop(clk, 0);
}

static unsigned long sh7722_mstpcr_recalc(struct clk *clk)
{
return clk->parent->rate;
}

static struct clk_ops sh7722_mstpcr_clk_ops = {
.enable = sh7722_mstpcr_enable,
.disable = sh7722_mstpcr_disable,
.recalc = sh7722_mstpcr_recalc,
.recalc = followparent_recalc,
};

#define MSTPCR(_name, _parent, regnr, bitnr) \
Expand Down
7 changes: 1 addition & 6 deletions trunk/arch/sh/kernel/cpu/sh4a/clock-sh7763.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,8 @@ static struct clk_ops sh7763_bus_clk_ops = {
.recalc = bus_clk_recalc,
};

static unsigned long cpu_clk_recalc(struct clk *clk)
{
return clk->parent->rate;
}

static struct clk_ops sh7763_cpu_clk_ops = {
.recalc = cpu_clk_recalc,
.recalc = followparent_recalc,
};

static struct clk_ops *sh7763_clk_ops[] = {
Expand Down

0 comments on commit fa0857f

Please sign in to comment.