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)
commitafea2ad53f1fef0b57d0e59fa062f54797158b14
treeecc489268ca805d985b71af7b74ca4f9d009e8d0
parent26a3481586eb1918a75d338e31c990deab06fb5b
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