diff options
author | Dave Airlie <airlied@linux.ie> | 2004-08-30 09:01:50 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-08-30 09:01:50 +0000 |
commit | 7809efc8c32520e6b25c143ee3276edbf534ed14 (patch) | |
tree | cfa0ada45d368025b7506277fb4d2d22db243518 /linux-core/drm_irq.c | |
parent | 08de6e5b04c1950a5f396315e59d2476726e26d8 (diff) |
drm-memory patch, cleans up alloc/free and makes calloc look more libc like
Diffstat (limited to 'linux-core/drm_irq.c')
-rw-r--r-- | linux-core/drm_irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c index d9eb9f1d..b34f1ce4 100644 --- a/linux-core/drm_irq.c +++ b/linux-core/drm_irq.c @@ -304,7 +304,7 @@ int DRM(wait_vblank)( DRM_IOCTL_ARGS ) spin_unlock_irqrestore( &dev->vbl_lock, irqflags ); - if ( !( vbl_sig = DRM_MALLOC( sizeof( drm_vbl_sig_t ) ) ) ) { + if ( !( vbl_sig = DRM(alloc)( sizeof( drm_vbl_sig_t ), DRM_MEM_DRIVER ) ) ) { return -ENOMEM; } @@ -360,7 +360,7 @@ void DRM(vbl_send_signals)( drm_device_t *dev ) list_del( list ); - DRM_FREE( vbl_sig, sizeof(*vbl_sig) ); + DRM(free)( vbl_sig, sizeof(*vbl_sig), DRM_MEM_DRIVER ); dev->vbl_pending--; } |