iommu: Make the iova library a module
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 13 Jul 2015 11:31:30 +0000 (14:31 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 28 Jul 2015 14:48:01 +0000 (15:48 +0100)
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>
drivers/iommu/Kconfig
drivers/iommu/iova.c

index f1fb1d3ccc56e679dd72334b6f81195981fa17c1..0a141cd44ddd727fc023da439c3a1cd82c9d2020 100644 (file)
@@ -42,7 +42,7 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST
 endmenu
 
 config IOMMU_IOVA
-       bool
+       tristate
 
 config OF_IOMMU
        def_bool y
index cbd74c79b212a4267dd1a42906b7afd6444fc8d2..fa0adef32bd6d3a4af1b97ee3b1fb22dde6c225f 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include <linux/iova.h>
+#include <linux/module.h>
 #include <linux/slab.h>
 
 void
@@ -548,3 +549,6 @@ error:
                free_iova_mem(prev);
        return NULL;
 }
+
+MODULE_AUTHOR("Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>");
+MODULE_LICENSE("GPL");