diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-07-01 20:32:58 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-02 13:34:41 +1000 |
commit | 77ef8bbc87be7ad10b410247efc6d0f10676b401 (patch) | |
tree | 9cf69a4bbf55b95eeb25a1c4b8a700db138486c7 /include/drm/drm_mm.h | |
parent | 6ef92fbea2b5680204da5b8796e8972109d01bd3 (diff) | |
download | blackbird-op-linux-77ef8bbc87be7ad10b410247efc6d0f10676b401.tar.gz blackbird-op-linux-77ef8bbc87be7ad10b410247efc6d0f10676b401.zip |
drm: make drm_mm_init() return void
There is no reason to return "int" as this function never fails.
Furthermore, several drivers (ast, sis) already depend on this.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_mm.h')
-rw-r--r-- | include/drm/drm_mm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index 88591ef8fa24..de9242542f05 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h @@ -275,9 +275,9 @@ static inline struct drm_mm_node *drm_mm_search_free_in_range_color( return drm_mm_search_free_in_range_generic(mm, size, alignment, color, start, end, best_match); } -extern int drm_mm_init(struct drm_mm *mm, - unsigned long start, - unsigned long size); +extern void drm_mm_init(struct drm_mm *mm, + unsigned long start, + unsigned long size); extern void drm_mm_takedown(struct drm_mm *mm); extern int drm_mm_clean(struct drm_mm *mm); extern int drm_mm_pre_get(struct drm_mm *mm); |