diff options
author | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2013-07-12 15:41:36 +0200 |
---|---|---|
committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2013-07-24 01:47:32 +0200 |
commit | 43a83027d4705bb6b6506f9467c9c4d3e2a1b504 (patch) | |
tree | e060b29c313b2da5c5918bec0d52b85176e2d63f /drivers/gpu/drm/gma500 | |
parent | 924cb5ffd81d66cc6461de955f7cb144cb3b7b6d (diff) | |
download | op-kernel-dev-43a83027d4705bb6b6506f9467c9c4d3e2a1b504.zip op-kernel-dev-43a83027d4705bb6b6506f9467c9c4d3e2a1b504.tar.gz |
drm/gma500/psb: Convert to generic set_config()
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_intel_display.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c index 317c585..05faf1c 100644 --- a/drivers/gpu/drm/gma500/psb_intel_display.c +++ b/drivers/gpu/drm/gma500/psb_intel_display.c @@ -19,7 +19,6 @@ */ #include <linux/i2c.h> -#include <linux/pm_runtime.h> #include <drm/drmP.h> #include "framebuffer.h" @@ -305,21 +304,6 @@ static int psb_intel_crtc_mode_set(struct drm_crtc *crtc, return 0; } -static int psb_crtc_set_config(struct drm_mode_set *set) -{ - int ret; - struct drm_device *dev = set->crtc->dev; - struct drm_psb_private *dev_priv = dev->dev_private; - - if (!dev_priv->rpm_enabled) - return drm_crtc_helper_set_config(set); - - pm_runtime_forbid(&dev->pdev->dev); - ret = drm_crtc_helper_set_config(set); - pm_runtime_allow(&dev->pdev->dev); - return ret; -} - /* Returns the clock of the currently programmed mode of the given pipe. */ static int psb_intel_crtc_clock_get(struct drm_device *dev, struct drm_crtc *crtc) @@ -460,7 +444,7 @@ const struct drm_crtc_funcs psb_intel_crtc_funcs = { .cursor_set = gma_crtc_cursor_set, .cursor_move = gma_crtc_cursor_move, .gamma_set = gma_crtc_gamma_set, - .set_config = psb_crtc_set_config, + .set_config = gma_crtc_set_config, .destroy = gma_crtc_destroy, }; |