summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-07-01 20:32:58 +0200
committerDave Airlie <airlied@redhat.com>2013-07-02 13:34:41 +1000
commit77ef8bbc87be7ad10b410247efc6d0f10676b401 (patch)
tree9cf69a4bbf55b95eeb25a1c4b8a700db138486c7 /include/drm
parent6ef92fbea2b5680204da5b8796e8972109d01bd3 (diff)
downloadop-kernel-dev-77ef8bbc87be7ad10b410247efc6d0f10676b401.zip
op-kernel-dev-77ef8bbc87be7ad10b410247efc6d0f10676b401.tar.gz
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')
-rw-r--r--include/drm/drm_mm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h
index 88591ef..de92425 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);
OpenPOWER on IntegriCloud