diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-02-11 05:41:56 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-02-11 05:41:56 +0000 |
commit | ac9297570200f1f21dff01043baabdba90516722 (patch) | |
tree | b2444ee6c51da9a99e2cdd25dbf4c5f78d857e4e /drivers/dahdi/wctc4xxp/base.c | |
parent | aa59f4d0cd453df1c47bd2cb1bedb85a730380ed (diff) |
Use the proper pci_device when handling dma buffers.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6005 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctc4xxp/base.c')
-rw-r--r-- | drivers/dahdi/wctc4xxp/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index da56080..757d09d 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -1030,6 +1030,7 @@ wctc4xxp_initialize_descriptor_ring(struct pci_dev *pdev, struct wctc4xxp_descri d->des1 |= cpu_to_le32(END_OF_RING); dr->direction = direction; spin_lock_init(&dr->lock); + dr->pdev = pdev; return 0; } @@ -1305,7 +1306,7 @@ wctc4xxp_cleanup_descriptor_ring(struct wctc4xxp_descriptor_ring *dr) for (i = 0; i < DRING_SIZE; ++i) { d = wctc4xxp_descriptor(dr, i); if (d->buffer1) { - dma_unmap_single(&dr->pdev->dev, d->buffer1, + pci_unmap_single(dr->pdev, d->buffer1, SFRAME_SIZE, dr->direction); d->buffer1 = 0; /* Commands will also be sitting on the waiting for |