]> git.baikalelectronics.ru Git - kernel.git/commit
drm: WARN() when drm_connector_attach_property fails
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 15 May 2012 21:09:00 +0000 (18:09 -0300)
committerDave Airlie <airlied@redhat.com>
Thu, 17 May 2012 10:11:06 +0000 (11:11 +0100)
commit79e186e90cacc759d07cd063f93556a7547ee275
treeecc489268ca805d985b71af7b74ca4f9d009e8d0
parentcde08e66c22e7ccf313f8ce31bb25b5b190c4e34
drm: WARN() when drm_connector_attach_property fails

Also return void instead of int. We have more than 100 callers and
no one checks for the return value.

If this function fails the property won't be exposed by the get/set
ioctls, but we should probably survive. If this starts happening,
the solution will be to increase DRM_CONNECTOR_MAX_PROPERTY and
recompile the Kernel.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h