aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/dmtimer.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-09-21 19:38:51 -0400
committerTony Lindgren <tony@atomide.com>2011-09-21 19:38:51 -0400
commit0dad9faeaeb0fa3524068a94e1745b91e5597c17 (patch)
tree2dbe24ec9964d605ea39756ed320524901324f17 /arch/arm/plat-omap/dmtimer.c
parentffe07ceae1ae4b00b776c59694eddd9dd615dcea (diff)
ARM: OMAP: dmtimer: skip reserved timers
Pass the reserved flag in pdata and use it. We can now make sys_timer_reserved static to mach-omap2/timer.c. 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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index ac904c2ea058..c8df3c36b3ad 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -509,6 +509,7 @@ static int __devinit omap_dm_timer_probe(struct platform_device *pdev)
509 509
510 timer->id = pdev->id; 510 timer->id = pdev->id;
511 timer->irq = irq->start; 511 timer->irq = irq->start;
512 timer->reserved = pdata->reserved;
512 timer->pdev = pdev; 513 timer->pdev = pdev;
513 514
514 /* Skip pm_runtime_enable for OMAP1 */ 515 /* Skip pm_runtime_enable for OMAP1 */
@@ -517,6 +518,12 @@ static int __devinit omap_dm_timer_probe(struct platform_device *pdev)
517 pm_runtime_irq_safe(&pdev->dev); 518 pm_runtime_irq_safe(&pdev->dev);
518 } 519 }
519 520
521 if (!timer->reserved) {
522 pm_runtime_get_sync(&pdev->dev);
523 __omap_dm_timer_init_regs(timer);
524 pm_runtime_put(&pdev->dev);
525 }
526
520 /* add the timer element to the list */ 527 /* add the timer element to the list */
521 spin_lock_irqsave(&dm_timer_lock, flags); 528 spin_lock_irqsave(&dm_timer_lock, flags);
522 list_add_tail(&timer->node, &omap_timer_list); 529 list_add_tail(&timer->node, &omap_timer_list);