diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2013-03-04 18:28:16 +1100 |
---|---|---|
committer | Jonathan Gray <jsg@jsg.id.au> | 2013-03-04 18:28:16 +1100 |
commit | 15052a6e2a7efa642198f94959f759183b2e58ef (patch) | |
tree | 39dabae2c1dd01ad782f6cf3c5f677ccfa3f670b /sys/dev/pci/drm/drm_irq.c | |
parent | c31559b84a103a7101758bb02d202986dea1aa51 (diff) |
use drm_free() instead of a similiar function for a callback
Diffstat (limited to 'sys/dev/pci/drm/drm_irq.c')
-rw-r--r-- | sys/dev/pci/drm/drm_irq.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/pci/drm/drm_irq.c b/sys/dev/pci/drm/drm_irq.c index 372fcdf6087..82d08f0d537 100644 --- a/sys/dev/pci/drm/drm_irq.c +++ b/sys/dev/pci/drm/drm_irq.c @@ -67,7 +67,6 @@ void send_vblank_event(struct drm_device *, struct drm_pending_vblank_event *, unsigned long, struct timeval *); void drm_update_vblank_count(struct drm_device *, int); -void vblank_free(void *); int drm_queue_vblank_event(struct drm_device *, int, union drm_wait_vblank *, struct drm_file *); void drm_handle_vblank_events(struct drm_device *, int); @@ -1177,12 +1176,6 @@ drm_modeset_ctl(struct drm_device *dev, void *data, return 0; } -void -vblank_free(void *ptr) -{ - free(ptr, M_DRM); -} - int drm_queue_vblank_event(struct drm_device *dev, int pipe, union drm_wait_vblank *vblwait, @@ -1206,7 +1199,7 @@ drm_queue_vblank_event(struct drm_device *dev, int pipe, e->event.user_data = vblwait->request.signal; e->base.event = &e->event.base; e->base.file_priv = file_priv; - e->base.destroy = (void (*) (struct drm_pending_event *)) vblank_free; + e->base.destroy = (void (*) (struct drm_pending_event *)) drm_free; mtx_enter(&dev->event_lock); |