diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2009-09-15 16:57:31 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-11-05 17:47:06 -0500 |
commit | 7a9c906094de8b3dc227de448019dbc386cd25d4 (patch) | |
tree | bf7ebc3d31e27b449ec0e000bfd65eddf758fc6b /drivers/gpu/drm/drm_crtc.c | |
parent | 97f5ab6651a996ecefed73e41684422f3b29d9a8 (diff) |
drm: make drm_mode_object_find typesafe
I've wasted half a day hunting a bug that could easily be spotted by
gcc. Prevent this from reoccurring.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 5cae0b3eee9b..ee0cde1ecca5 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -247,7 +247,8 @@ static void drm_mode_object_put(struct drm_device *dev, | |||
247 | mutex_unlock(&dev->mode_config.idr_mutex); | 247 | mutex_unlock(&dev->mode_config.idr_mutex); |
248 | } | 248 | } |
249 | 249 | ||
250 | void *drm_mode_object_find(struct drm_device *dev, uint32_t id, uint32_t type) | 250 | struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, |
251 | uint32_t id, uint32_t type) | ||
251 | { | 252 | { |
252 | struct drm_mode_object *obj = NULL; | 253 | struct drm_mode_object *obj = NULL; |
253 | 254 | ||