diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-06-23 11:22:36 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-07-02 17:00:48 +0200 |
commit | ba6976c129a571464fccbbcf866f4f93d91113c0 (patch) | |
tree | f3018a70bec86a61544a81317282eef6107a6d79 /drivers/gpu/drm/drm_legacy.h | |
parent | drm: Turn off Legacy Context Functions (diff) | |
download | linux-ba6976c129a571464fccbbcf866f4f93d91113c0.tar.xz linux-ba6976c129a571464fccbbcf866f4f93d91113c0.zip |
drm: Convert drm_legacy_ctxbitmap_init to void return type
It can't fail really.
Also remove the redundant kms check Peter added.
Cc: Peter Antoine <peter.antoine@intel.com>
Reviewed-by: Peter Antoine <peter.antoine@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'drivers/gpu/drm/drm_legacy.h')
-rw-r--r-- | drivers/gpu/drm/drm_legacy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_legacy.h b/drivers/gpu/drm/drm_legacy.h index c1dc61473db5..9b731786e4db 100644 --- a/drivers/gpu/drm/drm_legacy.h +++ b/drivers/gpu/drm/drm_legacy.h @@ -42,7 +42,7 @@ struct drm_file; #define DRM_KERNEL_CONTEXT 0 #define DRM_RESERVED_CONTEXTS 1 -int drm_legacy_ctxbitmap_init(struct drm_device *dev); +void drm_legacy_ctxbitmap_init(struct drm_device *dev); void drm_legacy_ctxbitmap_cleanup(struct drm_device *dev); void drm_legacy_ctxbitmap_free(struct drm_device *dev, int ctx_handle); void drm_legacy_ctxbitmap_flush(struct drm_device *dev, struct drm_file *file); |