msm: iommu: Disable IOMMU support on MSM8960v1.x

Do not register IOMMU devices on MSM8960 SoC versions prior
to v2.

Change-Id: I300c04fbff1bec404bb77eb9b7dccee6087f837f
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-iommu.c b/arch/arm/mach-msm/devices-iommu.c
index 73c96fb..b04bc11 100644
--- a/arch/arm/mach-msm/devices-iommu.c
+++ b/arch/arm/mach-msm/devices-iommu.c
@@ -1060,6 +1060,12 @@
 {
 	int ret;
 
+	if (cpu_is_msm8960() &&
+	    SOCINFO_VERSION_MAJOR(socinfo_get_version()) < 2) {
+		pr_err("IOMMU is not supported on this SoC version.\n");
+		return -ENODEV;
+	}
+
 	ret = platform_device_register(&msm_root_iommu_dev);
 	if (ret != 0) {
 		pr_err("Failed to register root IOMMU device!\n");