diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-01-11 11:22:23 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-02-04 16:30:09 -0500 |
commit | 08aca087f263e8089420b2723fe0c1a0cbe5de0c (patch) | |
tree | e63f7d29d5f06e3eb4c1cc29f790b174105b8afb /arch/arm/mach-davinci/clock.h | |
parent | e89861e9b44fcd606cdade6230eb0037ad5911bf (diff) |
davinci: clkdev cleanup: remove clk_lookup wrapper, use clkdev_add_table()
Remove unneeded 'struct davinci_clk' wrapper around 'struct clk_lookup'
and use clkdev_add_table() to add the list of clocks in one go.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/clock.h')
-rw-r--r-- | arch/arm/mach-davinci/clock.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/arch/arm/mach-davinci/clock.h b/arch/arm/mach-davinci/clock.h index 31fb6eac712c..aa0a61150325 100644 --- a/arch/arm/mach-davinci/clock.h +++ b/arch/arm/mach-davinci/clock.h | |||
@@ -106,20 +106,14 @@ struct clk { | |||
106 | #define CLK_PLL BIT(4) /* PLL-derived clock */ | 106 | #define CLK_PLL BIT(4) /* PLL-derived clock */ |
107 | #define PRE_PLL BIT(5) /* source is before PLL mult/div */ | 107 | #define PRE_PLL BIT(5) /* source is before PLL mult/div */ |
108 | 108 | ||
109 | struct davinci_clk { | 109 | #define CLK(dev, con, ck) \ |
110 | struct clk_lookup lk; | 110 | { \ |
111 | }; | 111 | .dev_id = dev, \ |
112 | 112 | .con_id = con, \ | |
113 | #define CLK(dev, con, ck) \ | 113 | .clk = ck, \ |
114 | { \ | 114 | } \ |
115 | .lk = { \ | 115 | |
116 | .dev_id = dev, \ | 116 | int davinci_clk_init(struct clk_lookup *clocks); |
117 | .con_id = con, \ | ||
118 | .clk = ck, \ | ||
119 | }, \ | ||
120 | } | ||
121 | |||
122 | int davinci_clk_init(struct davinci_clk *clocks); | ||
123 | int davinci_set_pllrate(struct pll_data *pll, unsigned int prediv, | 117 | int davinci_set_pllrate(struct pll_data *pll, unsigned int prediv, |
124 | unsigned int mult, unsigned int postdiv); | 118 | unsigned int mult, unsigned int postdiv); |
125 | 119 | ||