diff options
| author | Magnus Damm <damm@opensource.se> | 2010-05-11 05:35:19 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-13 04:36:08 -0400 |
| commit | b3f9f630d35f7eeec49221690991e834d7b27e05 (patch) | |
| tree | fded43dcd0b866355cb48d7f34e60e36f959d304 | |
| parent | 53041f020b31dd83aa4d0bdc78015bee58b1afe8 (diff) | |
sh: switch sh7724 to clkdev
This patch converts the remaining sh7724 clocks
to use clkdev for lookup. The now unused name
and id from struct clk are also removed.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| -rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c index 6095f50fca8a..2d9700c6b53a 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c | |||
| @@ -41,8 +41,6 @@ | |||
| 41 | 41 | ||
| 42 | /* Fixed 32 KHz root clock for RTC and Power Management purposes */ | 42 | /* Fixed 32 KHz root clock for RTC and Power Management purposes */ |
| 43 | static struct clk r_clk = { | 43 | static struct clk r_clk = { |
| 44 | .name = "rclk", | ||
| 45 | .id = -1, | ||
| 46 | .rate = 32768, | 44 | .rate = 32768, |
| 47 | }; | 45 | }; |
| 48 | 46 | ||
| @@ -51,8 +49,6 @@ static struct clk r_clk = { | |||
| 51 | * from the platform code. | 49 | * from the platform code. |
| 52 | */ | 50 | */ |
| 53 | struct clk extal_clk = { | 51 | struct clk extal_clk = { |
| 54 | .name = "extal", | ||
| 55 | .id = -1, | ||
| 56 | .rate = 33333333, | 52 | .rate = 33333333, |
| 57 | }; | 53 | }; |
| 58 | 54 | ||
| @@ -76,8 +72,6 @@ static struct clk_ops fll_clk_ops = { | |||
| 76 | }; | 72 | }; |
| 77 | 73 | ||
| 78 | static struct clk fll_clk = { | 74 | static struct clk fll_clk = { |
| 79 | .name = "fll_clk", | ||
| 80 | .id = -1, | ||
| 81 | .ops = &fll_clk_ops, | 75 | .ops = &fll_clk_ops, |
| 82 | .parent = &r_clk, | 76 | .parent = &r_clk, |
| 83 | .flags = CLK_ENABLE_ON_INIT, | 77 | .flags = CLK_ENABLE_ON_INIT, |
| @@ -98,8 +92,6 @@ static struct clk_ops pll_clk_ops = { | |||
| 98 | }; | 92 | }; |
| 99 | 93 | ||
| 100 | static struct clk pll_clk = { | 94 | static struct clk pll_clk = { |
| 101 | .name = "pll_clk", | ||
| 102 | .id = -1, | ||
| 103 | .ops = &pll_clk_ops, | 95 | .ops = &pll_clk_ops, |
| 104 | .flags = CLK_ENABLE_ON_INIT, | 96 | .flags = CLK_ENABLE_ON_INIT, |
| 105 | }; | 97 | }; |
| @@ -115,8 +107,6 @@ static struct clk_ops div3_clk_ops = { | |||
| 115 | }; | 107 | }; |
| 116 | 108 | ||
| 117 | static struct clk div3_clk = { | 109 | static struct clk div3_clk = { |
| 118 | .name = "div3_clk", | ||
| 119 | .id = -1, | ||
| 120 | .ops = &div3_clk_ops, | 110 | .ops = &div3_clk_ops, |
| 121 | .parent = &pll_clk, | 111 | .parent = &pll_clk, |
| 122 | }; | 112 | }; |
| @@ -234,6 +224,13 @@ static struct clk mstp_clks[HWBLK_NR] = { | |||
| 234 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } | 224 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } |
| 235 | 225 | ||
| 236 | static struct clk_lookup lookups[] = { | 226 | static struct clk_lookup lookups[] = { |
| 227 | /* main clocks */ | ||
| 228 | CLKDEV_CON_ID("rclk", &r_clk), | ||
| 229 | CLKDEV_CON_ID("extal", &extal_clk), | ||
| 230 | CLKDEV_CON_ID("fll_clk", &fll_clk), | ||
| 231 | CLKDEV_CON_ID("pll_clk", &pll_clk), | ||
| 232 | CLKDEV_CON_ID("div3_clk", &div3_clk), | ||
| 233 | |||
| 237 | /* DIV4 clocks */ | 234 | /* DIV4 clocks */ |
| 238 | CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), | 235 | CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), |
| 239 | CLKDEV_CON_ID("shyway_clk", &div4_clks[DIV4_SH]), | 236 | CLKDEV_CON_ID("shyway_clk", &div4_clks[DIV4_SH]), |
