]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/rockchip: Fix error handling in init
authorJeffy Chen <jeffy.chen@rock-chips.com>
Fri, 23 Mar 2018 07:38:12 +0000 (15:38 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 10:22:28 +0000 (12:22 +0200)
commit230fbc6e30085096a7f2359bc2e0adc9e7336c7a
tree219e1abe1477743cab3db750d81285921651ccb3
parent5cc71536cbc48094fb943cf859307918d9bd299e
iommu/rockchip: Fix error handling in init

It's hard to undo bus_set_iommu() in the error path, so move it to the
end of rk_iommu_probe().

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c