diff options
author | Jon Hunter <jon-hunter@ti.com> | 2012-06-05 13:34:56 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-06-14 05:39:47 -0400 |
commit | 0b30ec1cb7f1b0134b16670f886baaf3521b083c (patch) | |
tree | 3f7eb333103e29373e6d3478acd69b23ad1d2be6 /arch/arm/mach-omap2/timer.c | |
parent | 1c2d076b589225e51e022d85bb9f25dca26530f3 (diff) |
ARM: OMAP: Remove timer function pointer for context loss counter
For OMAP2+ devices, a function pointer that returns the number of times a timer
power domain has lost context is passed to the dmtimer driver. This function
pointer is only populated for OMAP2+ devices and it is pointing to a platform
function. Given that this is a platform function, we can simplify the code by
removing the function pointer and referencing the function directly. We can use
the OMAP_TIMER_ALWON flag to determine if we need to call this function for
OMAP1 and OMAP2+ devices.
The benefit of this change is the we can remove the function pointer from the
platform data and simplifies the dmtimer migration to device-tree.
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 9b6880a33793..0e17a0d9690b 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -494,9 +494,6 @@ static int __init omap_timer_init(struct omap_hwmod *oh, void *unused) | |||
494 | if (timer_dev_attr) | 494 | if (timer_dev_attr) |
495 | pdata->timer_capability = timer_dev_attr->timer_capability; | 495 | pdata->timer_capability = timer_dev_attr->timer_capability; |
496 | 496 | ||
497 | #ifdef CONFIG_PM | ||
498 | pdata->get_context_loss_count = omap_pm_get_dev_context_loss_count; | ||
499 | #endif | ||
500 | pdev = omap_device_build(name, id, oh, pdata, sizeof(*pdata), | 497 | pdev = omap_device_build(name, id, oh, pdata, sizeof(*pdata), |
501 | NULL, 0, 0); | 498 | NULL, 0, 0); |
502 | 499 | ||