Skip to content

Commit

Permalink
iommu: Make the iova library a module
Browse files Browse the repository at this point in the history
The iova library has use outside the intel-iommu driver, thus make it a
module.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Sakari Ailus authored and David Woodhouse committed Jul 28, 2015
1 parent 9b41760 commit 15bbdec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST
endmenu

config IOMMU_IOVA
bool
tristate

config OF_IOMMU
def_bool y
Expand Down
4 changes: 4 additions & 0 deletions drivers/iommu/iova.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include <linux/iova.h>
#include <linux/module.h>
#include <linux/slab.h>

void
Expand Down Expand Up @@ -548,3 +549,6 @@ split_and_remove_iova(struct iova_domain *iovad, struct iova *iova,
free_iova_mem(prev);
return NULL;
}

MODULE_AUTHOR("Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>");
MODULE_LICENSE("GPL");

0 comments on commit 15bbdec

Please sign in to comment.