[POWERPC] Split out the logic that allocates struct iommus
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 29 Jan 2008 14:13:59 +0000 (01:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 31 Jan 2008 01:11:10 +0000 (12:11 +1100)
commit209bfbb4780190754a6383ad052e59ce8b5bedeb
tree2dada617645452adac673d09c82c3e51edf52ab8
parent41d824bf61b507c001868861cddda25eaab23cd7
[POWERPC] Split out the logic that allocates struct iommus

Split out the logic that allocates a struct iommu into a separate
function.  This can fail however the calling code has never cared - so
just return if we can't allocate an iommu.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/iommu.c