diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-07-01 14:32:58 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-01 23:34:41 -0400 |
commit | 77ef8bbc87be7ad10b410247efc6d0f10676b401 (patch) | |
tree | 9cf69a4bbf55b95eeb25a1c4b8a700db138486c7 /include/drm/drm_mm.h | |
parent | 6ef92fbea2b5680204da5b8796e8972109d01bd3 (diff) |
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( | |||
275 | return drm_mm_search_free_in_range_generic(mm, size, alignment, color, | 275 | return drm_mm_search_free_in_range_generic(mm, size, alignment, color, |
276 | start, end, best_match); | 276 | start, end, best_match); |
277 | } | 277 | } |
278 | extern int drm_mm_init(struct drm_mm *mm, | 278 | extern void drm_mm_init(struct drm_mm *mm, |
279 | unsigned long start, | 279 | unsigned long start, |
280 | unsigned long size); | 280 | unsigned long size); |
281 | extern void drm_mm_takedown(struct drm_mm *mm); | 281 | extern void drm_mm_takedown(struct drm_mm *mm); |
282 | extern int drm_mm_clean(struct drm_mm *mm); | 282 | extern int drm_mm_clean(struct drm_mm *mm); |
283 | extern int drm_mm_pre_get(struct drm_mm *mm); | 283 | extern int drm_mm_pre_get(struct drm_mm *mm); |