* [patch 2/2] iommu/arm-smmu: fix iommu_present() test in init
@ 2013-08-21 8:34 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-08-21 8:34 UTC (permalink / raw)
To: linux-arm-kernel
The extra semi-colon on the end breaks the test.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
I can't compile this or test it. The original code didn't work as
intended but it would still be good to test this because it changes the
code a lot.
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 7243af3..913bd15 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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-21 8:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 8:34 [patch 2/2] iommu/arm-smmu: fix iommu_present() test in init Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox