[PATCH] iommu: arm-smmu: Handle return of iommu_device_register.

2017-06-22 Thread Arvind Yadav
iommu_device_register can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/iommu/arm-smmu-v3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 7d3f08a..182eb38

[PATCH] iommu: arm-smmu: Handle return of iommu_device_register.

2017-06-22 Thread Arvind Yadav
iommu_device_register can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/iommu/arm-smmu-v3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 7d3f08a..182eb38 100644 ---