summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/exynos-iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index 33dcc29ec200..30808e91b775 100644
--- a/drivers/iommu/exynos-iommu.c
+++ b/drivers/iommu/exynos-iommu.c
@@ -1345,8 +1345,8 @@ static int __init exynos_iommu_of_setup(struct device_node *np)
1345 exynos_iommu_init(); 1345 exynos_iommu_init();
1346 1346
1347 pdev = of_platform_device_create(np, NULL, platform_bus_type.dev_root); 1347 pdev = of_platform_device_create(np, NULL, platform_bus_type.dev_root);
1348 if (IS_ERR(pdev)) 1348 if (!pdev)
1349 return PTR_ERR(pdev); 1349 return -ENODEV;
1350 1350
1351 /* 1351 /*
1352 * use the first registered sysmmu device for performing 1352 * use the first registered sysmmu device for performing