diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-11-21 20:41:39 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-12-16 01:31:19 -0500 |
commit | 2e8581e756ddbd0dea8b0d4059e9a82d2929de01 (patch) | |
tree | 0dcae8c0023c749c776737a84a4e0efa62efe9f1 /arch/arm/mach-pxa | |
parent | bb71bdd31b48efa2b9834f1a47eb5f657e3c217c (diff) |
ARM: pxa: replace duplicated macro DEFINE_PXA3_CK() with DEFINE_CK()
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/clock.h | 22 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 7 |
2 files changed, 12 insertions, 17 deletions
diff --git a/arch/arm/mach-pxa/clock.h b/arch/arm/mach-pxa/clock.h index d8488742b807..f09ecb1a379e 100644 --- a/arch/arm/mach-pxa/clock.h +++ b/arch/arm/mach-pxa/clock.h | |||
@@ -21,14 +21,6 @@ struct clk { | |||
21 | .con_id = _conname, \ | 21 | .con_id = _conname, \ |
22 | } | 22 | } |
23 | 23 | ||
24 | #define DEFINE_CKEN(_name, _cken, _rate, _delay) \ | ||
25 | struct clk clk_##_name = { \ | ||
26 | .ops = &clk_cken_ops, \ | ||
27 | .rate = _rate, \ | ||
28 | .cken = CKEN_##_cken, \ | ||
29 | .delay = _delay, \ | ||
30 | } | ||
31 | |||
32 | #define DEFINE_CK(_name, _cken, _ops) \ | 24 | #define DEFINE_CK(_name, _cken, _ops) \ |
33 | struct clk clk_##_name = { \ | 25 | struct clk clk_##_name = { \ |
34 | .ops = _ops, \ | 26 | .ops = _ops, \ |
@@ -42,6 +34,14 @@ struct clk clk_##_name = { \ | |||
42 | .delay = _delay, \ | 34 | .delay = _delay, \ |
43 | } | 35 | } |
44 | 36 | ||
37 | #define DEFINE_CKEN(_name, _cken, _rate, _delay) \ | ||
38 | struct clk clk_##_name = { \ | ||
39 | .ops = &clk_cken_ops, \ | ||
40 | .rate = _rate, \ | ||
41 | .cken = CKEN_##_cken, \ | ||
42 | .delay = _delay, \ | ||
43 | } | ||
44 | |||
45 | extern const struct clkops clk_cken_ops; | 45 | extern const struct clkops clk_cken_ops; |
46 | 46 | ||
47 | void clk_cken_enable(struct clk *clk); | 47 | void clk_cken_enable(struct clk *clk); |
@@ -56,12 +56,6 @@ struct clk clk_##_name = { \ | |||
56 | .delay = _delay, \ | 56 | .delay = _delay, \ |
57 | } | 57 | } |
58 | 58 | ||
59 | #define DEFINE_PXA3_CK(_name, _cken, _ops) \ | ||
60 | struct clk clk_##_name = { \ | ||
61 | .ops = _ops, \ | ||
62 | .cken = CKEN_##_cken, \ | ||
63 | } | ||
64 | |||
65 | extern const struct clkops clk_pxa3xx_cken_ops; | 59 | extern const struct clkops clk_pxa3xx_cken_ops; |
66 | extern void clk_pxa3xx_cken_enable(struct clk *); | 60 | extern void clk_pxa3xx_cken_enable(struct clk *); |
67 | extern void clk_pxa3xx_cken_disable(struct clk *); | 61 | extern void clk_pxa3xx_cken_disable(struct clk *); |
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index dc658ad234e1..a0b123c99a4d 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -216,9 +216,6 @@ static struct clk clk_dummy = { | |||
216 | .ops = &clk_dummy_ops, | 216 | .ops = &clk_dummy_ops, |
217 | }; | 217 | }; |
218 | 218 | ||
219 | static DEFINE_PXA3_CK(pxa3xx_lcd, LCD, &clk_pxa3xx_hsio_ops); | ||
220 | static DEFINE_PXA3_CK(pxa3xx_camera, CAMERA, &clk_pxa3xx_hsio_ops); | ||
221 | static DEFINE_PXA3_CK(pxa3xx_ac97, AC97, &clk_pxa3xx_ac97_ops); | ||
222 | static DEFINE_PXA3_CKEN(pxa3xx_ffuart, FFUART, 14857000, 1); | 219 | static DEFINE_PXA3_CKEN(pxa3xx_ffuart, FFUART, 14857000, 1); |
223 | static DEFINE_PXA3_CKEN(pxa3xx_btuart, BTUART, 14857000, 1); | 220 | static DEFINE_PXA3_CKEN(pxa3xx_btuart, BTUART, 14857000, 1); |
224 | static DEFINE_PXA3_CKEN(pxa3xx_stuart, STUART, 14857000, 1); | 221 | static DEFINE_PXA3_CKEN(pxa3xx_stuart, STUART, 14857000, 1); |
@@ -236,6 +233,10 @@ static DEFINE_PXA3_CKEN(pxa3xx_pwm1, PWM1, 13000000, 0); | |||
236 | static DEFINE_PXA3_CKEN(pxa3xx_mmc1, MMC1, 19500000, 0); | 233 | static DEFINE_PXA3_CKEN(pxa3xx_mmc1, MMC1, 19500000, 0); |
237 | static DEFINE_PXA3_CKEN(pxa3xx_mmc2, MMC2, 19500000, 0); | 234 | static DEFINE_PXA3_CKEN(pxa3xx_mmc2, MMC2, 19500000, 0); |
238 | 235 | ||
236 | static DEFINE_CK(pxa3xx_lcd, LCD, &clk_pxa3xx_hsio_ops); | ||
237 | static DEFINE_CK(pxa3xx_camera, CAMERA, &clk_pxa3xx_hsio_ops); | ||
238 | static DEFINE_CK(pxa3xx_ac97, AC97, &clk_pxa3xx_ac97_ops); | ||
239 | |||
239 | static struct clk_lookup pxa3xx_clkregs[] = { | 240 | static struct clk_lookup pxa3xx_clkregs[] = { |
240 | INIT_CLKREG(&clk_pxa3xx_pout, NULL, "CLK_POUT"), | 241 | INIT_CLKREG(&clk_pxa3xx_pout, NULL, "CLK_POUT"), |
241 | /* Power I2C clock is always on */ | 242 | /* Power I2C clock is always on */ |