mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
x86/amd-iommu: Un__init function required on shutdown
The function iommu_feature_disable is required on system shutdown to disable the IOMMU but it is marked as __init. This may result in a panic if the memory is reused. This patch fixes this bug. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
c5cca146aa
commit
ca0207114f
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ static void iommu_feature_enable(struct amd_iommu *iommu, u8 bit)
|
|||
writel(ctrl, iommu->mmio_base + MMIO_CONTROL_OFFSET);
|
||||
}
|
||||
|
||||
static void __init iommu_feature_disable(struct amd_iommu *iommu, u8 bit)
|
||||
static void iommu_feature_disable(struct amd_iommu *iommu, u8 bit)
|
||||
{
|
||||
u32 ctrl;
|
||||
|
||||
|
|
Loading…
Reference in a new issue