iommu: rockchip: Free domain on .domain_free
authorEzequiel Garcia <ezequiel@collabora.com>
Wed, 2 Oct 2019 17:29:23 +0000 (14:29 -0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 16 Oct 2019 07:43:07 +0000 (09:43 +0200)
commit42bb97b80f2e3bf592e3e99d109b67309aa1b30e
tree3e1124e26a696aa278db8d7cfdbd94aa9be632a1
parent4f5cafb5cb8471e54afdc9054d973535614f7675
iommu: rockchip: Free domain on .domain_free

IOMMU domain resource life is well-defined, managed
by .domain_alloc and .domain_free.

Therefore, domain-specific resources shouldn't be tied to
the device life, but instead to its domain.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c