summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r600_cs.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-10-17 13:35:04 +0300
committerDave Airlie <airlied@redhat.com>2013-11-06 13:25:20 +1000
commit10e10d34eec680490ccba7f9d53ffd0816f107f6 (patch)
treecf4a7fd85c20b2fb71253be1d376b0db398954d8 /drivers/gpu/drm/radeon/r600_cs.c
parent3f2c20572ac6164ba3ce6f4e92bf9d5abe1543ac (diff)
downloadop-kernel-dev-10e10d34eec680490ccba7f9d53ffd0816f107f6.zip
op-kernel-dev-10e10d34eec680490ccba7f9d53ffd0816f107f6.tar.gz
drm/radeon: Return -ENOENT when a mode object can't be found
Let's be a bit more consistent with our error values. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_cs.c')
-rw-r--r--drivers/gpu/drm/radeon/r600_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c
index 1abaa2b..5dceea6 100644
--- a/drivers/gpu/drm/radeon/r600_cs.c
+++ b/drivers/gpu/drm/radeon/r600_cs.c
@@ -887,7 +887,7 @@ int r600_cs_common_vline_parse(struct radeon_cs_parser *p,
obj = drm_mode_object_find(p->rdev->ddev, crtc_id, DRM_MODE_OBJECT_CRTC);
if (!obj) {
DRM_ERROR("cannot find crtc %d\n", crtc_id);
- return -EINVAL;
+ return -ENOENT;
}
crtc = obj_to_crtc(obj);
radeon_crtc = to_radeon_crtc(crtc);
OpenPOWER on IntegriCloud