Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272690
b: refs/heads/master
c: 3392cdd
h: refs/heads/master
v: v3
  • Loading branch information
Tarun Kanti DebBarma authored and Tony Lindgren committed Sep 21, 2011
1 parent 9888c1d commit d353dcf
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 249 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df28472a1b28f5d2a6e5cf66265aa328995fde6b
refs/heads/master: 3392cdd33a0419e3226910a08b8bdc43b56c95d0
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-omap2/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,23 @@ static int __init omap_timer_init(struct omap_hwmod *oh, void *unused)

return ret;
}

/**
* omap2_dm_timer_init - top level regular device initialization
*
* Uses dedicated hwmod api to parse through hwmod database for
* given class name and then build and register the timer device.
*/
static int __init omap2_dm_timer_init(void)
{
int ret;

ret = omap_hwmod_for_each_by_class("timer", omap_timer_init, NULL);
if (unlikely(ret)) {
pr_err("%s: device registration failed.\n", __func__);
return -EINVAL;
}

return 0;
}
arch_initcall(omap2_dm_timer_init);
Loading

0 comments on commit d353dcf

Please sign in to comment.