Skip to content

Commit

Permalink
iommu/amd: Move iommu_init_pci() to .init section
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel committed Oct 5, 2018
1 parent 17b57b1 commit 24d2c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 24d2c52

Please sign in to comment.