diff options
author | Rob Clark <robdclark@gmail.com> | 2014-07-17 23:30:04 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-18 14:25:15 +1000 |
commit | 7707e6535f43328e05e4729ac96eee864b90e8a4 (patch) | |
tree | f4b5ef3ab0b67b86b2a75a8f3c5a7e7f0086848c /drivers/gpu/drm/i915/intel_display.c | |
parent | 6d385c0aa31de99da391fda0fc43462e2df20863 (diff) | |
download | linux-7707e6535f43328e05e4729ac96eee864b90e8a4.tar.gz linux-7707e6535f43328e05e4729ac96eee864b90e8a4.tar.bz2 linux-7707e6535f43328e05e4729ac96eee864b90e8a4.zip |
drm/i915: use helpers
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 927d2476f60a..8796eb18c9a4 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -11738,21 +11738,20 @@ int intel_get_pipe_from_crtc_id(struct drm_device *dev, void *data, struct drm_file *file) { struct drm_i915_get_pipe_from_crtc_id *pipe_from_crtc_id = data; - struct drm_mode_object *drmmode_obj; + struct drm_crtc *drmmode_crtc; struct intel_crtc *crtc; if (!drm_core_check_feature(dev, DRIVER_MODESET)) return -ENODEV; - drmmode_obj = drm_mode_object_find(dev, pipe_from_crtc_id->crtc_id, - DRM_MODE_OBJECT_CRTC); + drmmode_crtc = drm_crtc_find(dev, pipe_from_crtc_id->crtc_id); - if (!drmmode_obj) { + if (!drmmode_crtc) { DRM_ERROR("no such CRTC id\n"); return -ENOENT; } - crtc = to_intel_crtc(obj_to_crtc(drmmode_obj)); + crtc = to_intel_crtc(drmmode_crtc); pipe_from_crtc_id->pipe = crtc->pipe; return 0; |