summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2018-10-05 13:32:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-25 11:48:02 +0300
commit03d54393e3d7d78c72742353026505766c93eac1 (patch)
tree9c5f6871bd5bd10cfbb46165669095113b72c82a /drivers/iommu
parent62e023ddd01a56d9f1bf0dcd3c878fd7f2326c25 (diff)
downloadlinux-03d54393e3d7d78c72742353026505766c93eac1.tar.xz
iommu/amd: Move iommu_init_pci() to .init section
commit 24d2c521749d8547765b555b7a85cca179bb2275 upstream. The function is only called from another __init function, so it should be moved to .init too. Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/amd_iommu_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index 3a1d30304f7e..66b4800bcdd8 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -1710,7 +1710,7 @@ static const struct attribute_group *amd_iommu_groups[] = {
NULL,
};
-static int iommu_init_pci(struct amd_iommu *iommu)
+static int __init iommu_init_pci(struct amd_iommu *iommu)
{
int cap_ptr = iommu->cap_ptr;
u32 range, misc, low, high;