diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-03-04 01:02:41 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-08 23:03:25 -0500 |
commit | 57190708f1f52d732d94fa21a8e576302d384d33 (patch) | |
tree | e288959df1d9ed7cb4664ce17b792e065a4d97a1 /arch/powerpc/kernel | |
parent | 9874777016e06ad2df420237963e81389776cb6d (diff) |
[POWERPC] Create and use get_pci_dma_ops()
This allows us to hide pci_dma_ops.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 73d509343d5b..db1d40ef7d60 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -61,8 +61,7 @@ void iSeries_pcibios_init(void); | |||
61 | 61 | ||
62 | LIST_HEAD(hose_list); | 62 | LIST_HEAD(hose_list); |
63 | 63 | ||
64 | struct dma_mapping_ops *pci_dma_ops; | 64 | static struct dma_mapping_ops *pci_dma_ops; |
65 | EXPORT_SYMBOL(pci_dma_ops); | ||
66 | 65 | ||
67 | int global_phb_number; /* Global phb counter */ | 66 | int global_phb_number; /* Global phb counter */ |
68 | 67 | ||
@@ -75,6 +74,12 @@ void set_pci_dma_ops(struct dma_mapping_ops *dma_ops) | |||
75 | pci_dma_ops = dma_ops; | 74 | pci_dma_ops = dma_ops; |
76 | } | 75 | } |
77 | 76 | ||
77 | struct dma_mapping_ops *get_pci_dma_ops(void) | ||
78 | { | ||
79 | return pci_dma_ops; | ||
80 | } | ||
81 | EXPORT_SYMBOL(get_pci_dma_ops); | ||
82 | |||
78 | static void fixup_broken_pcnet32(struct pci_dev* dev) | 83 | static void fixup_broken_pcnet32(struct pci_dev* dev) |
79 | { | 84 | { |
80 | if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) { | 85 | if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) { |