Skip to contentSkip to conversation

iommu/amd: Move iommu_init_pci() to .init section

PATCH New Joerg Roedel 1 participant 1 message Oct 5, 2018 IOMMU

lore
Share & tools
lore

Joerg Roedel

author maintainer
#0 lore raw

PATCH 1/1 iommu/amd: Move iommu_init_pci() to .init section

From: Joerg Roedel <[email protected]>

The function is only called from another __init function, so it should be moved to .init too.

---
 drivers/iommu/amd_iommu_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/amd_iommu_init.c +1 -1
index 84b3e4445d46..9c3d610e1e19 100644
@@ -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;
Signature · 1 line
2.13.7