diff options
author | Tony Lindgren <tony@atomide.com> | 2012-10-29 15:20:45 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-10-31 15:37:13 -0700 |
commit | 6e740f9a85339c295af8deb5376511fcb2a268ad (patch) | |
tree | 9b411c8d8f56cce80a22ee4e766878861a052b10 /arch/arm/mach-omap2/timer.c | |
parent | 01480bad0a91413e92077067e38e82ade78dc88a (diff) | |
download | blackbird-op-linux-6e740f9a85339c295af8deb5376511fcb2a268ad.tar.gz blackbird-op-linux-6e740f9a85339c295af8deb5376511fcb2a268ad.zip |
ARM: OMAP: Move omap-pm-noop.c local to mach-omap2
This code should be private to mach-omap2.
The only use for it in for omap1 has been in dmtimer.c
to check for context loss. However, omap1 does not
lose context during idle, so the code is not needed.
Further, omap1 timer has OMAP_TIMER_ALWON set, so omap1
was not hitting omap_pm_get_dev_context_loss_count()
test.
Cc: Jon Hunter <jon-hunter@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 565e5755c9bc..95e447890cd5 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c @@ -559,6 +559,8 @@ static int __init omap_timer_init(struct omap_hwmod *oh, void *unused) if (timer_dev_attr) pdata->timer_capability = timer_dev_attr->timer_capability; + pdata->get_context_loss_count = omap_pm_get_dev_context_loss_count; + pdev = omap_device_build(name, id, oh, pdata, sizeof(*pdata), NULL, 0, 0); |