summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-21 09:34:20 +0100
committerWill Deacon <will.deacon@arm.com>2013-09-17 12:03:11 +0100
commit6614ee77f49d37f9bb77eb3e81431ca8fcc4042e (patch)
treec5aaf15a525eb4d0cb09934f4c07bd8109155e4b /drivers/iommu
parentfaea13b72dbdb77e4d6ad83344596486611708b0 (diff)
downloadblackbird-op-linux-6614ee77f49d37f9bb77eb3e81431ca8fcc4042e.tar.gz
blackbird-op-linux-6614ee77f49d37f9bb77eb3e81431ca8fcc4042e.zip
iommu/arm-smmu: fix iommu_present() test in init
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/arm-smmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 7243af3b891f..913bd1565e41 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -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;
OpenPOWER on IntegriCloud