diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-03-04 00:58:39 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-08 23:03:25 -0500 |
commit | 9874777016e06ad2df420237963e81389776cb6d (patch) | |
tree | abd509f5d37da4f8e2cdef8e3e41ec498c4a10ca /arch/powerpc/kernel/pci_64.c | |
parent | 618d3adc351a24c4c48437c767befb88ca2d199d (diff) |
[POWERPC] Create and use set_pci_dma_ops
This will allow us to build without PCI easier.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/pci_64.c')
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 7e97d71a5f8f..73d509343d5b 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -70,6 +70,11 @@ int global_phb_number; /* Global phb counter */ | |||
70 | struct pci_dev *ppc64_isabridge_dev = NULL; | 70 | struct pci_dev *ppc64_isabridge_dev = NULL; |
71 | EXPORT_SYMBOL_GPL(ppc64_isabridge_dev); | 71 | EXPORT_SYMBOL_GPL(ppc64_isabridge_dev); |
72 | 72 | ||
73 | void set_pci_dma_ops(struct dma_mapping_ops *dma_ops) | ||
74 | { | ||
75 | pci_dma_ops = dma_ops; | ||
76 | } | ||
77 | |||
73 | static void fixup_broken_pcnet32(struct pci_dev* dev) | 78 | static void fixup_broken_pcnet32(struct pci_dev* dev) |
74 | { | 79 | { |
75 | if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) { | 80 | if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) { |