Skip to contentSkip to conversation

fix OMAP1 dmtimer build warning

PATCH In review David Brownell 2 participants 2 messages Apr 2, 2007 – Apr 3, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix OMAP1 dmtimer build warning

Remove the OMAP1 version of omap_dm_timer_get_fclk(), and its associated compile-time warning. It would only BUG() if called, while it's only called on OMAP2.

arch/arm/plat-omap/dmtimer.c +0 -5
@@ -271,11 +271,6 @@ int omap_dm_timer_get_irq(struct omap_dm_timer *timer)
 
 #if defined(CONFIG_ARCH_OMAP1)
 
-struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer)
-{
-	BUG();
-}
-
 /**
  * omap_dm_timer_modify_idlect_mask - Check if any running timers use ARMXOR
  * @inputmask: current value of idlect mask
#1 lore raw
Quoted 10 lines · David Brownell

Remove the OMAP1 version of omap_dm_timer_get_fclk(), and its associated compile-time warning. It would only BUG() if called, while it's only called on OMAP2.

arch/arm/plat-omap/dmtimer.c +0 -0
@@ -271,11 +271,6 @@ int omap_dm_timer_get_irq(struct omap_dm_timer *timer)
 

arch/arm/plat-omap/dmtimer.c int omap_dm_timer_get_irq(struct omap_dm_timer *timer) · line 276

Quoted 10 lines
arch/arm/plat-omap/dmtimer.c +0 -5
 #if defined(CONFIG_ARCH_OMAP1)
 
-struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer)
-{
-	BUG();
-}
-
 /**
  * omap_dm_timer_modify_idlect_mask - Check if any running timers use ARMXOR
  * @inputmask: current value of idlect mask

Pushing to omap-upstream branch.

Tony