Skip to content

Commit

Permalink
powerpc/pci: Default to dma_direct_ops for pci dma_ops
Browse files Browse the repository at this point in the history
This will allow us to remove the ppc32 specific checks in get_dma_ops()
that defaults to dma_direct_ops if the archdata is NULL.  We really
should always have archdata set to something going forward.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Kumar Gala authored and Benjamin Herrenschmidt committed Mar 24, 2009
1 parent fb24744 commit 32ac576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/pci-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resource_size_t isa_mem_base;
unsigned int ppc_pci_flags = 0;


static struct dma_mapping_ops *pci_dma_ops;
static struct dma_mapping_ops *pci_dma_ops = &dma_direct_ops;

void set_pci_dma_ops(struct dma_mapping_ops *dma_ops)
{
Expand Down

0 comments on commit 32ac576

Please sign in to comment.