Commit ec3359e1 authored by Joerg Roedel's avatar Joerg Roedel Committed by Khalid Elmously

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

BugLink: https://bugs.launchpad.net/bugs/1845038

commit 24d2c521 upstream.

The function is only called from another __init function, so
it should be moved to .init too.
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 98b0b2ac
......@@ -1223,7 +1223,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment