[svn-commits] sruffell: branch 1.4 r4627 - /branches/1.4/kernel/wctc4xxp/base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Feb 10 23:45:11 CST 2009
Author: sruffell
Date: Tue Feb 10 23:45:11 2009
New Revision: 4627
URL: http://svn.digium.com/svn-view/zaptel?view=rev&rev=4627
Log:
Use the proper pci_device when handling dma buffers.
Modified:
branches/1.4/kernel/wctc4xxp/base.c
Modified: branches/1.4/kernel/wctc4xxp/base.c
URL: http://svn.digium.com/svn-view/zaptel/branches/1.4/kernel/wctc4xxp/base.c?view=diff&rev=4627&r1=4626&r2=4627
==============================================================================
--- branches/1.4/kernel/wctc4xxp/base.c (original)
+++ branches/1.4/kernel/wctc4xxp/base.c Tue Feb 10 23:45:11 2009
@@ -990,6 +990,7 @@
d->des1 |= cpu_to_le32(END_OF_RING);
dr->direction = direction;
spin_lock_init(&dr->lock);
+ dr->pdev = pdev;
return 0;
}
@@ -1265,7 +1266,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