X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fiommu-helper.c;h=a3b8d4c3f77a5e7e466bd8f5e5591f3dcaa2c3bd;hb=e4464facd6f1404c2baeb6798d71e34423e7aeaa;hp=889ddce2021e26870b0b287ad0d28e7032e99028;hpb=3a1a8acf690873f0ee2d8a648c2ec185f4294bd2;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);