diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:13:09 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-28 20:13:50 -0500 |
commit | 6ebe0d88f5fead21d6e1ac328acc683c173d26fc (patch) | |
tree | 68db5bb42d7a8429c43f741cad9408c91384e2b5 /arch/arm/mach-omap2/clock2xxx.c | |
parent | 44da0a51032f3d90a441bd80c2efe68532104980 (diff) |
OMAP2 clock: don't compile OMAP2430-only functions on non-2430 builds
omap2430_clk_i2chs_find_idlest() doesn't need to be compiled in on
non-2430 builds, so skip it in those cases to save memory.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock2xxx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx.c b/arch/arm/mach-omap2/clock2xxx.c index b59cb1d2bf55..e5b9851b7419 100644 --- a/arch/arm/mach-omap2/clock2xxx.c +++ b/arch/arm/mach-omap2/clock2xxx.c | |||
@@ -50,6 +50,8 @@ struct clk *vclk, *sclk, *dclk; | |||
50 | * Omap24xx specific clock functions | 50 | * Omap24xx specific clock functions |
51 | *-------------------------------------------------------------------------*/ | 51 | *-------------------------------------------------------------------------*/ |
52 | 52 | ||
53 | #ifdef CONFIG_ARCH_OMAP2430 | ||
54 | |||
53 | /** | 55 | /** |
54 | * omap2430_clk_i2chs_find_idlest - return CM_IDLEST info for 2430 I2CHS | 56 | * omap2430_clk_i2chs_find_idlest - return CM_IDLEST info for 2430 I2CHS |
55 | * @clk: struct clk * being enabled | 57 | * @clk: struct clk * being enabled |
@@ -69,6 +71,10 @@ static void omap2430_clk_i2chs_find_idlest(struct clk *clk, | |||
69 | *idlest_bit = clk->enable_bit; | 71 | *idlest_bit = clk->enable_bit; |
70 | } | 72 | } |
71 | 73 | ||
74 | #else | ||
75 | #define omap2430_clk_i2chs_find_idlest NULL | ||
76 | #endif | ||
77 | |||
72 | /* 2430 I2CHS has non-standard IDLEST register */ | 78 | /* 2430 I2CHS has non-standard IDLEST register */ |
73 | const struct clkops clkops_omap2430_i2chs_wait = { | 79 | const struct clkops clkops_omap2430_i2chs_wait = { |
74 | .enable = omap2_dflt_clk_enable, | 80 | .enable = omap2_dflt_clk_enable, |