diff options
author | Tony Lindgren <tony@atomide.com> | 2010-02-12 15:26:48 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 12:27:04 -0500 |
commit | 140455fa007a618d2d1bf5e6e888206534035e6f (patch) | |
tree | de32228b71e7992ad95a00756daaa2f527043c8f /arch/arm/plat-omap/dmtimer.c | |
parent | a8eb7ca0cbb41c9cd379b8d2a2a5efb503aa65e9 (diff) |
omap2/3/4: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS
omap: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/dmtimer.c')
-rw-r--r-- | arch/arm/plat-omap/dmtimer.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index c588cdf35db1..24bf692fe65e 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c | |||
@@ -153,8 +153,7 @@ | |||
153 | struct omap_dm_timer { | 153 | struct omap_dm_timer { |
154 | unsigned long phys_base; | 154 | unsigned long phys_base; |
155 | int irq; | 155 | int irq; |
156 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ | 156 | #ifdef CONFIG_ARCH_OMAP2PLUS |
157 | defined(CONFIG_ARCH_OMAP4) | ||
158 | struct clk *iclk, *fclk; | 157 | struct clk *iclk, *fclk; |
159 | #endif | 158 | #endif |
160 | void __iomem *io_base; | 159 | void __iomem *io_base; |
@@ -490,8 +489,7 @@ __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask) | |||
490 | } | 489 | } |
491 | EXPORT_SYMBOL_GPL(omap_dm_timer_modify_idlect_mask); | 490 | EXPORT_SYMBOL_GPL(omap_dm_timer_modify_idlect_mask); |
492 | 491 | ||
493 | #elif defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ | 492 | #else |
494 | defined(CONFIG_ARCH_OMAP4) | ||
495 | 493 | ||
496 | struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer) | 494 | struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer) |
497 | { | 495 | { |
@@ -535,8 +533,7 @@ void omap_dm_timer_stop(struct omap_dm_timer *timer) | |||
535 | if (l & OMAP_TIMER_CTRL_ST) { | 533 | if (l & OMAP_TIMER_CTRL_ST) { |
536 | l &= ~0x1; | 534 | l &= ~0x1; |
537 | omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l); | 535 | omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l); |
538 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ | 536 | #ifdef CONFIG_ARCH_OMAP2PLUS |
539 | defined(CONFIG_ARCH_OMAP4) | ||
540 | /* Readback to make sure write has completed */ | 537 | /* Readback to make sure write has completed */ |
541 | omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG); | 538 | omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG); |
542 | /* | 539 | /* |
@@ -781,8 +778,7 @@ int __init omap_dm_timer_init(void) | |||
781 | timer->io_base = ioremap(timer->phys_base, map_size); | 778 | timer->io_base = ioremap(timer->phys_base, map_size); |
782 | BUG_ON(!timer->io_base); | 779 | BUG_ON(!timer->io_base); |
783 | 780 | ||
784 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ | 781 | #ifdef CONFIG_ARCH_OMAP2PLUS |
785 | defined(CONFIG_ARCH_OMAP4) | ||
786 | if (cpu_class_is_omap2()) { | 782 | if (cpu_class_is_omap2()) { |
787 | char clk_name[16]; | 783 | char clk_name[16]; |
788 | sprintf(clk_name, "gpt%d_ick", i + 1); | 784 | sprintf(clk_name, "gpt%d_ick", i + 1); |