aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/omap_device.c')
-rw-r--r--arch/arm/mach-omap2/omap_device.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c
index e37feb2f05a3..5cc92874be7e 100644
--- a/arch/arm/mach-omap2/omap_device.c
+++ b/arch/arm/mach-omap2/omap_device.c
@@ -170,9 +170,6 @@ static int omap_device_build_from_dt(struct platform_device *pdev)
170 r->name = dev_name(&pdev->dev); 170 r->name = dev_name(&pdev->dev);
171 } 171 }
172 172
173 if (of_get_property(node, "ti,no_idle_on_suspend", NULL))
174 omap_device_disable_idle_on_suspend(pdev);
175
176 pdev->dev.pm_domain = &omap_device_pm_domain; 173 pdev->dev.pm_domain = &omap_device_pm_domain;
177 174
178odbfd_exit1: 175odbfd_exit1:
@@ -616,8 +613,7 @@ static int _od_suspend_noirq(struct device *dev)
616 613
617 if (!ret && !pm_runtime_status_suspended(dev)) { 614 if (!ret && !pm_runtime_status_suspended(dev)) {
618 if (pm_generic_runtime_suspend(dev) == 0) { 615 if (pm_generic_runtime_suspend(dev) == 0) {
619 if (!(od->flags & OMAP_DEVICE_NO_IDLE_ON_SUSPEND)) 616 omap_device_idle(pdev);
620 omap_device_idle(pdev);
621 od->flags |= OMAP_DEVICE_SUSPENDED; 617 od->flags |= OMAP_DEVICE_SUSPENDED;
622 } 618 }
623 } 619 }
@@ -633,8 +629,7 @@ static int _od_resume_noirq(struct device *dev)
633 if ((od->flags & OMAP_DEVICE_SUSPENDED) && 629 if ((od->flags & OMAP_DEVICE_SUSPENDED) &&
634 !pm_runtime_status_suspended(dev)) { 630 !pm_runtime_status_suspended(dev)) {
635 od->flags &= ~OMAP_DEVICE_SUSPENDED; 631 od->flags &= ~OMAP_DEVICE_SUSPENDED;
636 if (!(od->flags & OMAP_DEVICE_NO_IDLE_ON_SUSPEND)) 632 omap_device_enable(pdev);
637 omap_device_enable(pdev);
638 pm_generic_runtime_resume(dev); 633 pm_generic_runtime_resume(dev);
639 } 634 }
640 635