diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-01 05:38:20 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-03 04:49:27 -0500 |
commit | 59ce062ead2a7d114a1e7f505f250eabab9e9d85 (patch) | |
tree | 8182901bfc493996158289f4396e9a0ad2427e21 /drivers/gpu | |
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')
-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 5e818a808ace..c1a0d346b0c2 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) | |||
1048 | head) { | 1048 | head) { |
1049 | plane->funcs->destroy(plane); | 1049 | plane->funcs->destroy(plane); |
1050 | } | 1050 | } |
1051 | |||
1052 | idr_remove_all(&dev->mode_config.crtc_idr); | ||
1053 | idr_destroy(&dev->mode_config.crtc_idr); | ||
1051 | } | 1054 | } |
1052 | EXPORT_SYMBOL(drm_mode_config_cleanup); | 1055 | EXPORT_SYMBOL(drm_mode_config_cleanup); |
1053 | 1056 | ||