drm: don't use idr_remove_all()
authorTejun Heo <[email protected]>
Thu, 28 Feb 2013 01:03:39 +0000 (17:03 -0800)
committerLinus Torvalds <[email protected]>
Thu, 28 Feb 2013 03:10:13 +0000 (19:10 -0800)
commit4d53233a36fdda567cd4d080e27e1ee4b669ddd1
treeea2db52bd4aea72c20eb7630e4f350c54772e0d6
parent748689d40c2554b91197349a98ef084dc0fa70c8
drm: don't use idr_remove_all()

idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated.  Drop its usage.

* drm_ctxbitmap_cleanup() was calling idr_remove_all() but forgetting
  idr_destroy() thus leaking all buffered free idr_layers.  Replace it
  with idr_destroy().

Signed-off-by: Tejun Heo <[email protected]>
Acked-by: David Airlie <[email protected]>
Cc: Inki Dae <[email protected]>
Cc: Joonyoung Shim <[email protected]>
Cc: Seung-Woo Kim <[email protected]>
Cc: Kyungmin Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/gpu/drm/drm_context.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/exynos/exynos_drm_ipp.c
drivers/gpu/drm/sis/sis_drv.c
drivers/gpu/drm/via/via_map.c