aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/gma_display.c
diff options
context:
space:
mode:
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>2013-07-12 09:38:52 -0400
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>2013-07-23 19:47:31 -0400
commit924cb5ffd81d66cc6461de955f7cb144cb3b7b6d (patch)
tree7e8caa5e3d60d238ebf79d98b40622eb5aa05f67 /drivers/gpu/drm/gma500/gma_display.c
parentf0ff07b73b9b5be1f725f333d1516d569c697104 (diff)
drm/gma500: Add generic set_config() function
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/gma_display.c')
-rw-r--r--drivers/gpu/drm/gma500/gma_display.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c
index cca40c0b64e4..2a3e9254e651 100644
--- a/drivers/gpu/drm/gma500/gma_display.c
+++ b/drivers/gpu/drm/gma500/gma_display.c
@@ -519,6 +519,22 @@ void gma_crtc_destroy(struct drm_crtc *crtc)
519 kfree(psb_intel_crtc); 519 kfree(psb_intel_crtc);
520} 520}
521 521
522int gma_crtc_set_config(struct drm_mode_set *set)
523{
524 struct drm_device *dev = set->crtc->dev;
525 struct drm_psb_private *dev_priv = dev->dev_private;
526 int ret;
527
528 if (!dev_priv->rpm_enabled)
529 return drm_crtc_helper_set_config(set);
530
531 pm_runtime_forbid(&dev->pdev->dev);
532 ret = drm_crtc_helper_set_config(set);
533 pm_runtime_allow(&dev->pdev->dev);
534
535 return ret;
536}
537
522/** 538/**
523 * Save HW states of given crtc 539 * Save HW states of given crtc
524 */ 540 */