diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-30 06:26:00 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-10-24 01:46:23 -0400 |
commit | 998c336d4c7183301ed6a6ca93952f63e3cf694f (patch) | |
tree | 73176660d6f552e0d94020e1adb3b74084b8ba76 /drivers/video/omap2/dss/display.c | |
parent | b111224900ed743cc5a5f4feafdc910b9e8e736c (diff) |
OMAPDSS: remove omap_dss_device's suspend/resume
The panel drivers contain enable, disable, suspend and resume calls.
The suspend and resume are effectively identical to disable and enable.
This patch removes panel suspend and enable code from omapdss and the
panel drivers, and replaces their use with enable and disable.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/display.c')
-rw-r--r-- | drivers/video/omap2/dss/display.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index ccf8550fafde..1e587306215f 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c | |||
@@ -449,7 +449,6 @@ void dss_uninit_device(struct platform_device *pdev, | |||
449 | 449 | ||
450 | static int dss_suspend_device(struct device *dev, void *data) | 450 | static int dss_suspend_device(struct device *dev, void *data) |
451 | { | 451 | { |
452 | int r; | ||
453 | struct omap_dss_device *dssdev = to_dss_device(dev); | 452 | struct omap_dss_device *dssdev = to_dss_device(dev); |
454 | 453 | ||
455 | if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) { | 454 | if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) { |
@@ -457,15 +456,7 @@ static int dss_suspend_device(struct device *dev, void *data) | |||
457 | return 0; | 456 | return 0; |
458 | } | 457 | } |
459 | 458 | ||
460 | if (!dssdev->driver->suspend) { | 459 | dssdev->driver->disable(dssdev); |
461 | DSSERR("display '%s' doesn't implement suspend\n", | ||
462 | dssdev->name); | ||
463 | return -ENOSYS; | ||
464 | } | ||
465 | |||
466 | r = dssdev->driver->suspend(dssdev); | ||
467 | if (r) | ||
468 | return r; | ||
469 | 460 | ||
470 | dssdev->activate_after_resume = true; | 461 | dssdev->activate_after_resume = true; |
471 | 462 | ||
@@ -492,8 +483,8 @@ static int dss_resume_device(struct device *dev, void *data) | |||
492 | int r; | 483 | int r; |
493 | struct omap_dss_device *dssdev = to_dss_device(dev); | 484 | struct omap_dss_device *dssdev = to_dss_device(dev); |
494 | 485 | ||
495 | if (dssdev->activate_after_resume && dssdev->driver->resume) { | 486 | if (dssdev->activate_after_resume) { |
496 | r = dssdev->driver->resume(dssdev); | 487 | r = dssdev->driver->enable(dssdev); |
497 | if (r) | 488 | if (r) |
498 | return r; | 489 | return r; |
499 | } | 490 | } |