|
@@ -124,8 +124,6 @@ static void arm_dma_sync_single_for_device(struct device *dev,
|
|
|
__dma_page_cpu_to_dev(page, offset, size, dir);
|
|
|
}
|
|
|
|
|
|
-static int arm_dma_set_mask(struct device *dev, u64 dma_mask);
|
|
|
-
|
|
|
struct dma_map_ops arm_dma_ops = {
|
|
|
.alloc = arm_dma_alloc,
|
|
|
.free = arm_dma_free,
|
|
@@ -971,7 +969,7 @@ int dma_supported(struct device *dev, u64 mask)
|
|
|
}
|
|
|
EXPORT_SYMBOL(dma_supported);
|
|
|
|
|
|
-static int arm_dma_set_mask(struct device *dev, u64 dma_mask)
|
|
|
+int arm_dma_set_mask(struct device *dev, u64 dma_mask)
|
|
|
{
|
|
|
if (!dev->dma_mask || !dma_supported(dev, dma_mask))
|
|
|
return -EIO;
|