Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d9ffaad authored by Jeffy Chen's avatar Jeffy Chen Committed by Joerg Roedel
Browse files

iommu/rockchip: Fix error handling in probe



Add missing iommu_device_sysfs_remove in error path.

Signed-off-by: default avatarJeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: default avatarTomasz Figa <tfiga@chromium.org>
Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 98b72b94
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1193,6 +1193,8 @@ static int rk_iommu_probe(struct platform_device *pdev)

	iommu_device_set_ops(&iommu->iommu, &rk_iommu_ops);
	err = iommu_device_register(&iommu->iommu);
	if (err)
		iommu_device_sysfs_remove(&iommu->iommu);

	return err;
}