iommu: Make the iova library a module

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sakari Ailus 2015-09-29 18:08:26 -07:00 committed by Greg Kroah-Hartman
parent 11e33955b9
commit 234bc0d667
2 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,7 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST
endmenu
config IOMMU_IOVA
bool
tristate
config OF_IOMMU
def_bool y

View File

@ -18,6 +18,7 @@
*/
#include <linux/iova.h>
#include <linux/module.h>
#include <linux/slab.h>
void
@ -559,3 +560,6 @@ error:
free_iova_mem(prev);
return NULL;
}
MODULE_AUTHOR("Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>");
MODULE_LICENSE("GPL");