diff options
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index c317f721a8d3..c418c772a7e5 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -1034,15 +1034,15 @@ void drm_mode_config_cleanup(struct drm_device *dev) | |||
1034 | fb->funcs->destroy(fb); | 1034 | fb->funcs->destroy(fb); |
1035 | } | 1035 | } |
1036 | 1036 | ||
1037 | list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) { | ||
1038 | crtc->funcs->destroy(crtc); | ||
1039 | } | ||
1040 | |||
1041 | list_for_each_entry_safe(plane, plt, &dev->mode_config.plane_list, | 1037 | list_for_each_entry_safe(plane, plt, &dev->mode_config.plane_list, |
1042 | head) { | 1038 | head) { |
1043 | plane->funcs->destroy(plane); | 1039 | plane->funcs->destroy(plane); |
1044 | } | 1040 | } |
1045 | 1041 | ||
1042 | list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) { | ||
1043 | crtc->funcs->destroy(crtc); | ||
1044 | } | ||
1045 | |||
1046 | idr_remove_all(&dev->mode_config.crtc_idr); | 1046 | idr_remove_all(&dev->mode_config.crtc_idr); |
1047 | idr_destroy(&dev->mode_config.crtc_idr); | 1047 | idr_destroy(&dev->mode_config.crtc_idr); |
1048 | } | 1048 | } |