powerpc/cell: cell_dma_dev_setup_iommu() return the iommu table
authorMark Nelson <markn@au1.ibm.com>
Fri, 4 Jul 2008 19:05:44 +0000 (05:05 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 Jul 2008 06:30:43 +0000 (16:30 +1000)
commit7e5f8105030038de94b44a74cd7b64dd000830fc
treef06d44bb94b9d1dfd4b32fe99fa8c918a4284ad2
parent3affedc4e1ce837033b6c5e9289d2ce2f5a62d31
powerpc/cell: cell_dma_dev_setup_iommu() return the iommu table

Make cell_dma_dev_setup_iommu() return a pointer to the struct iommu_table
(or NULL if no table can be found) rather than putting this pointer into
dev->archdata.dma_data (let the caller do that), and rename this function
to cell_get_iommu_table() to reflect this change.

This will allow us to get the iommu table for a device that doesn't have
the table in the archdata.

Signed-off-by: Mark Nelson <markn@au1.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/iommu.c