diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2012-05-15 17:09:00 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-17 06:11:06 -0400 |
commit | afea2ad53f1fef0b57d0e59fa062f54797158b14 (patch) | |
tree | ecc489268ca805d985b71af7b74ca4f9d009e8d0 /include/drm | |
parent | 26a3481586eb1918a75d338e31c990deab06fb5b (diff) |
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>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index f35e7edd7de2..036faec8a6fe 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -910,8 +910,8 @@ extern int drmfb_remove(struct drm_device *dev, struct drm_framebuffer *fb); | |||
910 | extern void drm_crtc_probe_connector_modes(struct drm_device *dev, int maxX, int maxY); | 910 | extern void drm_crtc_probe_connector_modes(struct drm_device *dev, int maxX, int maxY); |
911 | extern bool drm_crtc_in_use(struct drm_crtc *crtc); | 911 | extern bool drm_crtc_in_use(struct drm_crtc *crtc); |
912 | 912 | ||
913 | extern int drm_connector_attach_property(struct drm_connector *connector, | 913 | extern void drm_connector_attach_property(struct drm_connector *connector, |
914 | struct drm_property *property, uint64_t init_val); | 914 | struct drm_property *property, uint64_t init_val); |
915 | extern struct drm_property *drm_property_create(struct drm_device *dev, int flags, | 915 | extern struct drm_property *drm_property_create(struct drm_device *dev, int flags, |
916 | const char *name, int num_values); | 916 | const char *name, int num_values); |
917 | extern struct drm_property *drm_property_create_enum(struct drm_device *dev, int flags, | 917 | extern struct drm_property *drm_property_create_enum(struct drm_device *dev, int flags, |