iommu: arm-smmu: Handle return of iommu_device_register.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 22 Jun 2017 07:27:42 +0000 (12:57 +0530)
committerWill Deacon <will.deacon@arm.com>
Fri, 23 Jun 2017 16:57:58 +0000 (17:57 +0100)
commit5c2d0218290afa3c335f38583bf4f8e8adad4c76
treefe190911a4f93c51b00f21d6c606be614597ef90
parentebdd13c93f8e878afcdba642f48cd1bd85619e2a
iommu: arm-smmu: Handle return of iommu_device_register.

iommu_device_register returns an error code and, although it currently
never fails, we should check its return value anyway.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
[will: adjusted to follow arm-smmu.c]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c