]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iommu/amd: Return positive value in amd_iommu_detect()
authorJérôme Glisse <jglisse@redhat.com>
Mon, 31 Aug 2015 22:13:03 +0000 (18:13 -0400)
committerJoerg Roedel <jroedel@suse.de>
Thu, 24 Sep 2015 14:50:01 +0000 (16:50 +0200)
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
drivers/iommu/amd_iommu_init.c

index 5ef347a13cb5d54789c07869b0527d81cb24365e..ea2afefe8e5731f56ec837899dbd4321729e122b 100644 (file)
@@ -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;
 }
 
 /****************************************************************************