X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fiommu-helper.c;h=a3b8d4c3f77a5e7e466bd8f5e5591f3dcaa2c3bd;hb=35ed4e75989c4e84a44b25569bbf09b98f923880;hp=889ddce2021e26870b0b287ad0d28e7032e99028;hpb=e93dc4891df93d7efa59d861fdcbb529a1819343;p=linux-2.6 diff --git a/lib/iommu-helper.c b/lib/iommu-helper.c index 889ddce202..a3b8d4c3f7 100644 --- a/lib/iommu-helper.c +++ b/lib/iommu-helper.c @@ -80,11 +80,3 @@ void iommu_area_free(unsigned long *map, unsigned long start, unsigned int nr) } } EXPORT_SYMBOL(iommu_area_free); - -unsigned long iommu_num_pages(unsigned long addr, unsigned long len) -{ - unsigned long size = roundup((addr & ~PAGE_MASK) + len, PAGE_SIZE); - - return size >> PAGE_SHIFT; -} -EXPORT_SYMBOL(iommu_num_pages);