summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-02-01 11:38:20 +0100
committerDave Airlie <airlied@redhat.com>2012-02-03 09:49:27 +0000
commit59ce062ead2a7d114a1e7f505f250eabab9e9d85 (patch)
tree8182901bfc493996158289f4396e9a0ad2427e21 /drivers/gpu/drm/drm_crtc.c
parentf2746f83d50287fdb6768e0f20168c64b6a7c9cb (diff)
downloadblackbird-op-linux-59ce062ead2a7d114a1e7f505f250eabab9e9d85.tar.gz
blackbird-op-linux-59ce062ead2a7d114a1e7f505f250eabab9e9d85.zip
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.c3
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)
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);
OpenPOWER on IntegriCloud