Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101767
b: refs/heads/master
c: 7e5f810
h: refs/heads/master
i:
  101765: 8938c59
  101763: abc6910
  101759: 6e09871
v: v3
  • Loading branch information
Mark Nelson authored and Benjamin Herrenschmidt committed Jul 9, 2008
1 parent 292f527 commit cd3aae2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3affedc4e1ce837033b6c5e9289d2ce2f5a62d31
refs/heads/master: 7e5f8105030038de94b44a74cd7b64dd000830fc
8 changes: 4 additions & 4 deletions trunk/arch/powerpc/platforms/cell/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ static unsigned long cell_dma_direct_offset;
static unsigned long dma_iommu_fixed_base;
struct dma_mapping_ops dma_iommu_fixed_ops;

static void cell_dma_dev_setup_iommu(struct device *dev)
static struct iommu_table *cell_get_iommu_table(struct device *dev)
{
struct iommu_window *window;
struct cbe_iommu *iommu;
Expand All @@ -555,11 +555,11 @@ static void cell_dma_dev_setup_iommu(struct device *dev)
printk(KERN_ERR "iommu: missing iommu for %s (node %d)\n",
archdata->of_node ? archdata->of_node->full_name : "?",
archdata->numa_node);
return;
return NULL;
}
window = list_entry(iommu->windows.next, struct iommu_window, list);

archdata->dma_data = &window->table;
return &window->table;
}

static void cell_dma_dev_setup_fixed(struct device *dev);
Expand All @@ -572,7 +572,7 @@ static void cell_dma_dev_setup(struct device *dev)
if (get_dma_ops(dev) == &dma_iommu_fixed_ops)
cell_dma_dev_setup_fixed(dev);
else if (get_pci_dma_ops() == &dma_iommu_ops)
cell_dma_dev_setup_iommu(dev);
archdata->dma_data = cell_get_iommu_table(dev);
else if (get_pci_dma_ops() == &dma_direct_ops)
archdata->dma_data = (void *)cell_dma_direct_offset;
else
Expand Down

0 comments on commit cd3aae2

Please sign in to comment.