diff options
author | Jérôme Glisse <jglisse@redhat.com> | 2015-08-31 18:13:03 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-09-24 16:50:01 +0200 |
commit | 4781bc427b0d23bfde4675d210fd35debee2c9de (patch) | |
tree | da171fb0a4e74709fc4da5f76a38d7c0424879bf /drivers | |
parent | 1f93e4a96c9109378204c147b3eec0d0e8100fde (diff) | |
download | linux-stable-4781bc427b0d23bfde4675d210fd35debee2c9de.tar.gz linux-stable-4781bc427b0d23bfde4675d210fd35debee2c9de.tar.bz2 linux-stable-4781bc427b0d23bfde4675d210fd35debee2c9de.zip |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/amd_iommu_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index 5ef347a13cb5..ea2afefe8e57 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -2198,7 +2198,7 @@ int __init amd_iommu_detect(void) iommu_detected = 1; x86_init.iommu.iommu_init = amd_iommu_init; - return 0; + return 1; } /**************************************************************************** |