summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/psb_intel_display.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-10-17 13:35:02 +0300
committerDave Airlie <airlied@redhat.com>2013-11-06 13:25:19 +1000
commit4f224661096ca0d945324d661cf7c897ac6eb8e7 (patch)
tree3c4f8c858ee818efed715deab2404caed46451f4 /drivers/gpu/drm/gma500/psb_intel_display.c
parent37c4e705fcc4ace41c95ab362440d771f8b24972 (diff)
downloadtalos-obmc-linux-4f224661096ca0d945324d661cf7c897ac6eb8e7.tar.gz
talos-obmc-linux-4f224661096ca0d945324d661cf7c897ac6eb8e7.zip
drm/gma500: 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/gma500/psb_intel_display.c')
-rw-r--r--drivers/gpu/drm/gma500/psb_intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c
index 97f8a03fee43..c8841ac6c8f1 100644
--- a/drivers/gpu/drm/gma500/psb_intel_display.c
+++ b/drivers/gpu/drm/gma500/psb_intel_display.c
@@ -572,7 +572,7 @@ int psb_intel_get_pipe_from_crtc_id(struct drm_device *dev, void *data,
if (!drmmode_obj) {
dev_err(dev->dev, "no such CRTC id\n");
- return -EINVAL;
+ return -ENOENT;
}
crtc = to_gma_crtc(obj_to_crtc(drmmode_obj));
OpenPOWER on IntegriCloud