diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-01 11:38:20 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-03 09:49:27 +0000 |
commit | 59ce062ead2a7d114a1e7f505f250eabab9e9d85 (patch) | |
tree | 8182901bfc493996158289f4396e9a0ad2427e21 /drivers/gpu/drm/drm_crtc.c | |
parent | f2746f83d50287fdb6768e0f20168c64b6a7c9cb (diff) |
drm crtc: add forgotten idr cleanup functions
drm_mode_config_init initializes the idr with idr_init, so
add the missing counterparts in drm_mode_config_cleanup.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 5e818a808ac..c1a0d346b0c 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -1048,6 +1048,9 @@ void drm_mode_config_cleanup(struct drm_device *dev) head) { plane->funcs->destroy(plane); } + + idr_remove_all(&dev->mode_config.crtc_idr); + idr_destroy(&dev->mode_config.crtc_idr); } EXPORT_SYMBOL(drm_mode_config_cleanup); |