[svn-commits] sruffell: linux/trunk r6005 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Feb 10 23:41:57 CST 2009
Author: sruffell
Date: Tue Feb 10 23:41:56 2009
New Revision: 6005
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6005
Log:
Use the proper pci_device when handling dma buffers.
Modified:
linux/trunk/drivers/dahdi/wctc4xxp/base.c
Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=6005&r1=6004&r2=6005
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Tue Feb 10 23:41:56 2009
@@ -1030,6 +1030,7 @@
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 @@
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
More information about the svn-commits
mailing list