OSDN Git Service

iommu/arm-smmu: Allow building as a module
authorWill Deacon <will@kernel.org>
Thu, 19 Dec 2019 12:03:51 +0000 (12:03 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 23 Dec 2019 13:06:05 +0000 (14:06 +0100)
commitcd221bd24ff5567bbcc11ec0c303141a7c2b71bf
tree5dfab6e06eeb4b15680540ba69fc2611f4496d82
parent7359572e1a5d4280ad87b969b0d30be43ef4989a
iommu/arm-smmu: Allow building as a module

By conditionally dropping support for the legacy binding and exporting
the newly introduced 'arm_smmu_impl_init()' function we can allow the
ARM SMMU driver to be built as a module.

Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: John Garry <john.garry@huawei.com> # smmu v3
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/Makefile
drivers/iommu/arm-smmu.c