iommu/ipmmu-vmsa: Break out domain allocation code
authorMagnus Damm <damm+renesas@opensource.se>
Wed, 17 May 2017 10:06:59 +0000 (19:06 +0900)
committerJoerg Roedel <jroedel@suse.de>
Wed, 17 May 2017 13:21:53 +0000 (15:21 +0200)
commit8e73bf659135ee7333d9a762bbdadb2ad794452f
treed3194a1541c996daa0678030f71cd9ab4beb54d4
parent383fef5f4b56d8dc05cac12dc04262c8175331b1
iommu/ipmmu-vmsa: Break out domain allocation code

Break out the domain allocation code into a separate function.

This is preparation for future code sharing.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c