diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-08-14 00:46:15 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-08-14 00:46:15 +0000 |
commit | dd83f39f034756e7eb8e002dbfb0047f88aa79e4 (patch) | |
tree | f6d41dd33f59906f87d9a8199b086286a3ac6416 /bsd-core/drm_context.c | |
parent | 2376ec4ef8d280cf6fba44ba0163989eff739187 (diff) |
Add a "dev" argument to DRIVER_CTX_[CD]TOR. This will be used in an
upcoming commit for the SiS driver.
Diffstat (limited to 'bsd-core/drm_context.c')
-rw-r--r-- | bsd-core/drm_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_context.c b/bsd-core/drm_context.c index 3cb5992a..a61b7788 100644 --- a/bsd-core/drm_context.c +++ b/bsd-core/drm_context.c @@ -280,7 +280,7 @@ int DRM(addctx)( DRM_IOCTL_ARGS ) #ifdef DRIVER_CTX_CTOR if ( ctx.handle != DRM_KERNEL_CONTEXT ) - DRIVER_CTX_CTOR(ctx.handle); /* XXX: also pass dev ? */ + DRIVER_CTX_CTOR(dev, ctx.handle); #endif DRM_COPY_TO_USER_IOCTL( (drm_ctx_t *)data, ctx, sizeof(ctx) ); @@ -342,7 +342,7 @@ int DRM(rmctx)( DRM_IOCTL_ARGS ) DRM_DEBUG( "%d\n", ctx.handle ); if ( ctx.handle != DRM_KERNEL_CONTEXT ) { #ifdef DRIVER_CTX_DTOR - DRIVER_CTX_DTOR(ctx.handle); /* XXX: also pass dev ? */ + DRIVER_CTX_DTOR(dev, ctx.handle); #endif DRM(ctxbitmap_free)( dev, ctx.handle ); } |