Re: [PATCH v2 2/7] iommu/exynos: Handle failed IOMMU device registration properly
From: Krzysztof Kozlowski
Date: Tue Jul 12 2022 - 12:20:48 EST
On 11/07/2022 01:05, Sam Protsenko wrote:
> If iommu_device_register() fails in exynos_sysmmu_probe(), the previous
> calls have to be cleaned up. In this case, the iommu_device_sysfs_add()
> should be cleaned up, by calling its remove counterpart call.
>
> Signed-off-by: Sam Protsenko <semen.protsenko@xxxxxxxxxx>
Fixes: d2c302b6e8b1 ("iommu/exynos: Make use of iommu_device_register
interface")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
Best regards,
Krzysztof