diff options
author | Dave Airlie <airlied@linux.ie> | 2004-08-19 12:26:12 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-08-19 12:26:12 +0000 |
commit | 6978e5afbd8197fe0d9269bfe4177ea80f682fd9 (patch) | |
tree | faef87dfbac48d8e22a5f0c49dd0697c204f034a /shared-core | |
parent | 8a39241a1d85be8c1ac51a23bbd6b3ce1702cea2 (diff) |
add free filp private pointer to cleanup after open_helperdrmfntbl-0-0-2-20040824-freeze
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/radeon_state.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c index 80c09584..cdbd7a8e 100644 --- a/shared-core/radeon_state.c +++ b/shared-core/radeon_state.c @@ -2595,6 +2595,13 @@ static int radeon_driver_open_helper(drm_device_t *dev, drm_file_t *filp_priv) return 0; } +static void radeon_driver_free_filp_private(drm_device_t *dev, drm_file_t *filp_priv) +{ + struct drm_radeon_driver_file_fields *radeon_priv = filp_priv->driver_priv; + + DRM(free)(radeon_priv, sizeof(*radeon_priv), DRM_MEM_FILES); +} + void radeon_driver_register_fns(struct drm_device *dev) { dev->driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG | DRIVER_HAVE_IRQ | DRIVER_HAVE_DMA | DRIVER_IRQ_SHARED | DRIVER_IRQ_VBL; @@ -2610,4 +2617,5 @@ void radeon_driver_register_fns(struct drm_device *dev) dev->fn_tbl.irq_postinstall = radeon_driver_irq_postinstall; dev->fn_tbl.irq_uninstall = radeon_driver_irq_uninstall; dev->fn_tbl.irq_handler = radeon_driver_irq_handler; + dev->fn_tbl.free_filp_private = radeon_driver_free_filp_private; } |