summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2007-05-17 19:28:03 +0100
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2007-05-17 19:28:03 +0100
commit07a5fbaa612a777de37b5dc0112f6f3f3f84c486 (patch)
treefd0532e13c0542be2903624a210aa2be76cd0ba6
parentb7bf317f42915dc4f5fde4a696e37985cea45104 (diff)
Move destruction of crtc as intelfb_remove uses the crtc to locate the fb.
-rw-r--r--linux-core/drm_crtc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index ab8b4688..7544eac4 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -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);