diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-22 14:42:37 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-22 14:42:37 +0000 |
commit | a714fd2e735156d99ef7b116ecd1a2fdf32cdadb (patch) | |
tree | 5dc1408fac391297810faebdba47591d39f9ed56 /sys/dev/pci/drm/savage_bci.c | |
parent | 74c8fafc99a7d1c884138462d4f8df03656fbb87 (diff) |
reduce the dependancy of drm_pci_alloc upon the drm device softc. Just
pass in the dma tag
Diffstat (limited to 'sys/dev/pci/drm/savage_bci.c')
-rw-r--r-- | sys/dev/pci/drm/savage_bci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/savage_bci.c b/sys/dev/pci/drm/savage_bci.c index 14aad7b0342..638c83eae8c 100644 --- a/sys/dev/pci/drm/savage_bci.c +++ b/sys/dev/pci/drm/savage_bci.c @@ -906,11 +906,11 @@ static int savage_do_cleanup_bci(struct drm_device *dev) } else if (dev_priv->cmd_dma && dev_priv->cmd_dma->handle && dev_priv->cmd_dma->type == _DRM_AGP && dev_priv->dma_type == SAVAGE_DMA_AGP) - drm_core_ioremapfree(dev_priv->cmd_dma, dev); + drm_core_ioremapfree(dev_priv->cmd_dma); if (dev_priv->dma_type == SAVAGE_DMA_AGP && dev->agp_buffer_map && dev->agp_buffer_map->handle) { - drm_core_ioremapfree(dev->agp_buffer_map, dev); + drm_core_ioremapfree(dev->agp_buffer_map); /* make sure the next instance (which may be running * in PCI mode) doesn't try to use an old * agp_buffer_map. */ |