diff options
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index ad73e141afdb..a0c365f2e521 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
35 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
36 | #include <linux/slab.h> | ||
36 | #include "drmP.h" | 37 | #include "drmP.h" |
37 | #include "drm_core.h" | 38 | #include "drm_core.h" |
38 | 39 | ||
@@ -515,8 +516,6 @@ void drm_put_dev(struct drm_device *dev) | |||
515 | } | 516 | } |
516 | driver = dev->driver; | 517 | driver = dev->driver; |
517 | 518 | ||
518 | drm_vblank_cleanup(dev); | ||
519 | |||
520 | drm_lastclose(dev); | 519 | drm_lastclose(dev); |
521 | 520 | ||
522 | if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) && | 521 | if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) && |
@@ -536,6 +535,8 @@ void drm_put_dev(struct drm_device *dev) | |||
536 | dev->agp = NULL; | 535 | dev->agp = NULL; |
537 | } | 536 | } |
538 | 537 | ||
538 | drm_vblank_cleanup(dev); | ||
539 | |||
539 | list_for_each_entry_safe(r_list, list_temp, &dev->maplist, head) | 540 | list_for_each_entry_safe(r_list, list_temp, &dev->maplist, head) |
540 | drm_rmmap(dev, r_list->map); | 541 | drm_rmmap(dev, r_list->map); |
541 | drm_ht_remove(&dev->map_hash); | 542 | drm_ht_remove(&dev->map_hash); |