diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-08-09 15:23:13 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-08-09 15:23:13 -0700 |
commit | 25cb876f8513d02d4d189371eaa8b7b9a88e860d (patch) | |
tree | 6de640d6a211af99fd990f6a7455bd49d0bb7659 /linux-core/xgi_drv.c | |
parent | f7ba02b7458823627097a2320bf9befa84fc9c76 (diff) |
Associate master file pointer with command list buffer.
Pass the master's file pointer, as supplied to xgi_bootstrap, to
xgi_cmdlist_initialize. Associate that pointer with the memory
allocated for the command list buffer. By doing this the memory will
be automatically cleaned up when the master closes the device. This
allows the removal of some clean up code.
Diffstat (limited to 'linux-core/xgi_drv.c')
-rw-r--r-- | linux-core/xgi_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c index b6fea437..9aaeb467 100644 --- a/linux-core/xgi_drv.c +++ b/linux-core/xgi_drv.c @@ -248,7 +248,7 @@ int xgi_bootstrap(struct drm_device * dev, void * data, } /* Alloc 1M bytes for cmdbuffer which is flush2D batch array */ - err = xgi_cmdlist_initialize(info, 0x100000); + err = xgi_cmdlist_initialize(info, 0x100000, filp); if (err) { DRM_ERROR("xgi_cmdlist_initialize() failed\n"); return err; |