iommu: inline iommu_num_pages
[sfrench/cifs-2.6.git] / lib / iommu-helper.c
index c0251f4ad08b05fec688f97ea2e771095cfdb89c..da053313ee5c089e099d02c9a368eb4f4aacaf56 100644 (file)
@@ -38,12 +38,3 @@ again:
        return -1;
 }
 EXPORT_SYMBOL(iommu_area_alloc);
        return -1;
 }
 EXPORT_SYMBOL(iommu_area_alloc);
-
-unsigned long iommu_num_pages(unsigned long addr, unsigned long len,
-                             unsigned long io_page_size)
-{
-       unsigned long size = (addr & (io_page_size - 1)) + len;
-
-       return DIV_ROUND_UP(size, io_page_size);
-}
-EXPORT_SYMBOL(iommu_num_pages);