drm: Consistently return -ENOENT when a mode object can't be found
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 Oct 2013 10:35:00 +0000 (13:35 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 03:25:17 +0000 (13:25 +1000)
commitf27657f2ea7ffc07cc5bd19e7b9f937b4451bbc8
tree70a885f30689268d3ff30a5fd8a7deb20647d5b7
parente1e78533f2ddeabef5dc6545739211795ac4b822
drm: Consistently return -ENOENT when a mode object can't be found

We tend to return -EINVAL for everything. Let's try to help poor
userland developers a bit by at least returning -ENONET for missing
objects.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c