]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iommu/arm-smmu: fix iommu_present() test in init
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Aug 2013 08:34:20 +0000 (09:34 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 17 Sep 2013 11:03:11 +0000 (12:03 +0100)
The extra semi-colon on the end breaks the test.

Cc: <stable@vger.kernel.org>
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c

index 7243af3b891fe9aa932d1f624eedb98f9688d384..913bd1565e4185c82fd93b932236f64dbb348b4d 100644 (file)
@@ -1967,10 +1967,10 @@ static int __init arm_smmu_init(void)
                return ret;
 
        /* Oh, for a proper bus abstraction */
-       if (!iommu_present(&platform_bus_type));
+       if (!iommu_present(&platform_bus_type))
                bus_set_iommu(&platform_bus_type, &arm_smmu_ops);
 
-       if (!iommu_present(&amba_bustype));
+       if (!iommu_present(&amba_bustype))
                bus_set_iommu(&amba_bustype, &arm_smmu_ops);
 
        return 0;