projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7bf317
)
Move destruction of crtc as intelfb_remove uses the crtc to locate the fb.
author
Alan Hourihane
<alanh@fairlite.demon.co.uk>
Thu, 17 May 2007 18:28:03 +0000
(19:28 +0100)
committer
Alan Hourihane
<alanh@fairlite.demon.co.uk>
Thu, 17 May 2007 18:28:03 +0000
(19:28 +0100)
linux-core/drm_crtc.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_crtc.c
b/linux-core/drm_crtc.c
index
ab8b468
..
7544eac
100644
(file)
--- 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);