summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd_iommu_init.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2018-10-05 13:32:46 +0300
committerJoerg Roedel <jroedel@suse.de>2018-10-05 13:32:46 +0300
commit24d2c521749d8547765b555b7a85cca179bb2275 (patch)
treeff509add48658c74378c3b8860b6aaf21127bdd2 /drivers/iommu/amd_iommu_init.c
parent17b57b1883c1285f3d0dc2266e8f79286a7bef38 (diff)
downloadlinux-24d2c521749d8547765b555b7a85cca179bb2275.tar.xz
iommu/amd: Move iommu_init_pci() to .init section
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>
Diffstat (limited to 'drivers/iommu/amd_iommu_init.c')
-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 84b3e4445d46..9c3d610e1e19 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -1709,7 +1709,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;