]> 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)
commite6a5c152f83b2bd6c374671f3deea3b4cf23035f
treeecc489268ca805d985b71af7b74ca4f9d009e8d0
parenta1dbd0093abd87847995255e180718be55202bae
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