dma-mapping: use unsigned long for dma_attrs
[cascardo/linux.git] / arch / x86 / kernel / pci-swiotlb.c
index 5069ef5..b47edb8 100644 (file)
@@ -16,7 +16,7 @@ int swiotlb __read_mostly;
 
 void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
                                        dma_addr_t *dma_handle, gfp_t flags,
-                                       struct dma_attrs *attrs)
+                                       unsigned long attrs)
 {
        void *vaddr;
 
@@ -37,7 +37,7 @@ void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
 
 void x86_swiotlb_free_coherent(struct device *dev, size_t size,
                                      void *vaddr, dma_addr_t dma_addr,
-                                     struct dma_attrs *attrs)
+                                     unsigned long attrs)
 {
        if (is_swiotlb_buffer(dma_to_phys(dev, dma_addr)))
                swiotlb_free_coherent(dev, size, vaddr, dma_addr);