|
@@ -1034,15 +1034,15 @@ void drm_mode_config_cleanup(struct drm_device *dev)
|
|
|
fb->funcs->destroy(fb);
|
|
|
}
|
|
|
|
|
|
- list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
|
|
|
- crtc->funcs->destroy(crtc);
|
|
|
- }
|
|
|
-
|
|
|
list_for_each_entry_safe(plane, plt, &dev->mode_config.plane_list,
|
|
|
head) {
|
|
|
plane->funcs->destroy(plane);
|
|
|
}
|
|
|
|
|
|
+ list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
|
|
|
+ crtc->funcs->destroy(crtc);
|
|
|
+ }
|
|
|
+
|
|
|
idr_remove_all(&dev->mode_config.crtc_idr);
|
|
|
idr_destroy(&dev->mode_config.crtc_idr);
|
|
|
}
|