]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Allow building as module
authorYong Wu <yong.wu@mediatek.com>
Fri, 26 Mar 2021 03:23:37 +0000 (11:23 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Apr 2021 08:33:58 +0000 (10:33 +0200)
commite9c83d9f5c4bae46cb264df9e6735a38f481c4da
tree7e8973f577e28acb970000187deabb26f7c3576b
parentde1829b0257494824ef1040eb9ffa5f0b019f23e
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>
drivers/iommu/Kconfig
drivers/iommu/mtk_iommu.c