Move destruction of crtc as intelfb_remove uses the crtc to locate the fb.

main
Alan Hourihane 2007-05-17 19:28:03 +01:00
parent b7bf317f42
commit 07a5fbaa61
1 changed files with 5 additions and 4 deletions

View File

@ -971,10 +971,6 @@ void drm_mode_config_cleanup(drm_device_t *dev)
drm_output_destroy(output);
}
list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
drm_crtc_destroy(crtc);
}
list_for_each_entry_safe(mode, mt, &dev->mode_config.usermode_list, head) {
drm_mode_destroy(dev, mode);
}
@ -989,6 +985,11 @@ void drm_mode_config_cleanup(drm_device_t *dev)
}
drm_framebuffer_destroy(fb);
}
list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
drm_crtc_destroy(crtc);
}
}
EXPORT_SYMBOL(drm_mode_config_cleanup);