aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/Kconfig
diff options
context:
space:
mode:
authorYong Wu <yong.wu@mediatek.com>2021-03-26 11:23:37 +0800
committerJoerg Roedel <jroedel@suse.de>2021-04-07 10:33:58 +0200
commit18d8c74ec5987a78bd1e9c1c629dfdd04a151a89 (patch)
tree7e8973f577e28acb970000187deabb26f7c3576b /drivers/iommu/Kconfig
parentiommu/mediatek-v1: Allow building as module (diff)
downloadlinux-dev-18d8c74ec5987a78bd1e9c1c629dfdd04a151a89.tar.xz
linux-dev-18d8c74ec5987a78bd1e9c1c629dfdd04a151a89.zip
iommu/mediatek: Allow building as module
The IOMMU in many SoC depends on the MM clocks and power-domain which are device_initcall normally, thus the subsys_init here is not helpful. This patch switches it to module_platform_driver which also allow the driver built as module. Correspondingly switch the config to tristate, and update the iommu_ops's owner. Signed-off-by: Yong Wu <yong.wu@mediatek.com> Link: https://lore.kernel.org/r/20210326032337.24578-2-yong.wu@mediatek.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/Kconfig')
-rw-r--r--drivers/iommu/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index bc93da48bed0..74f3e15edc14 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -349,7 +349,7 @@ config S390_AP_IOMMU
is not implemented as it is not necessary for VFIO.
config MTK_IOMMU
- bool "MTK IOMMU Support"
+ tristate "MediaTek IOMMU Support"
depends on ARCH_MEDIATEK || COMPILE_TEST
select ARM_DMA_USE_IOMMU
select IOMMU_API