diff options
author | Robert Noland <rnoland@2hip.net> | 2009-02-25 17:59:26 -0600 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-02-27 18:16:17 -0600 |
commit | 957b10695b619d6ed2f1098b00502395d9a3c149 (patch) | |
tree | 73ece8ec6f01018ea9fc920ee04992ec5e0fee2b /linux-core | |
parent | 7ce8d4c1fec618ac2578ea0ddb8915b1b41ab9cb (diff) |
Move vblank_init to driver load time.
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_drv.c | 2 | ||||
-rw-r--r-- | linux-core/drm_irq.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index 31a98fe8..a32bfa3c 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -397,6 +397,8 @@ static void drm_cleanup(struct drm_device * dev) return; } + drm_vblank_cleanup(dev); + drm_lastclose(dev); drm_fence_manager_takedown(dev); diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c index 57419ca1..64fffd9c 100644 --- a/linux-core/drm_irq.c +++ b/linux-core/drm_irq.c @@ -94,7 +94,7 @@ static void vblank_disable_fn(unsigned long arg) } } -static void drm_vblank_cleanup(struct drm_device *dev) +void drm_vblank_cleanup(struct drm_device *dev) { /* Bail if the driver didn't call drm_vblank_init() */ if (dev->num_crtcs == 0) @@ -282,8 +282,6 @@ int drm_irq_uninstall(struct drm_device * dev) free_irq(dev->pdev->irq, dev); - drm_vblank_cleanup(dev); - dev->locked_tasklet_func = NULL; return 0; |