]> xenbits.xensource.com Git - people/ssmith/netchannel2-pvops.git/commitdiff
xen/swiotlb: fix i386 compilation
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 3 Sep 2009 23:24:14 +0000 (16:24 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 3 Sep 2009 23:24:14 +0000 (16:24 -0700)
i386 dma_release_from_coherent() uses its arguments, and dev!=hwdev.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/pci-swiotlb.c

index d9733577ec9123a6b48429536ece1668565c663f..19b78e2894b0b176cc7cd73e7aa114f6523be6ea 100644 (file)
@@ -612,7 +612,7 @@ xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr,
 {
        int order = get_order(size);
 
-       if (dma_release_from_coherent(dev, order, vaddr))
+       if (dma_release_from_coherent(hwdev, order, vaddr))
                return;
 
        xen_destroy_contiguous_region((unsigned long)vaddr, order);