mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
iommu/amd: Return positive value in amd_iommu_detect()
Fix amd_iommu_detect() to return positive value on success, like intended, and not zero. This will not change anything in the end as AMD IOMMU disable swiotlb and properly associate itself with devices even if detect() doesn't return a positive value. Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: Joerg Roedel <jroedel@suse.de> Cc: iommu@lists.linux-foundation.org
This commit is contained in:
parent
1f93e4a96c
commit
4781bc427b
1 changed files with 1 additions and 1 deletions
|
@ -2198,7 +2198,7 @@ int __init amd_iommu_detect(void)
|
||||||
iommu_detected = 1;
|
iommu_detected = 1;
|
||||||
x86_init.iommu.iommu_init = amd_iommu_init;
|
x86_init.iommu.iommu_init = amd_iommu_init;
|
||||||
|
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue