diff options
author | Joerg Roedel <jroedel@suse.de> | 2018-10-05 13:32:46 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-10-05 13:32:46 +0300 |
commit | 24d2c521749d8547765b555b7a85cca179bb2275 (patch) | |
tree | ff509add48658c74378c3b8860b6aaf21127bdd2 /drivers/iommu/amd_iommu_init.c | |
parent | 17b57b1883c1285f3d0dc2266e8f79286a7bef38 (diff) | |
download | linux-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.c | 2 |
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; |