summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-07-01 20:32:58 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-21 19:12:27 +0900
commit8fb875dec1ab24b890f46f769823173890053455 (patch)
treef969dc555e0934713fb4394ea50537a99507e69a /include
parent3b50c0af522d021218666f7e374d98cb73be0603 (diff)
downloadlinux-3.10-8fb875dec1ab24b890f46f769823173890053455.tar.gz
linux-3.10-8fb875dec1ab24b890f46f769823173890053455.tar.bz2
linux-3.10-8fb875dec1ab24b890f46f769823173890053455.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')
-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 88591ef8fa2..de9242542f0 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);