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