diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 19:15:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 19:15:33 -0400 |
commit | 2b03adc1911d1c84cb7fad8b424234f589547cb3 (patch) | |
tree | ca817632d166046bbfe917894afd99c698d47627 /arch/microblaze/pci/pci-common.c | |
parent | eb3d3ec567e868c8a3bfbfdfc9465ffd52983d11 (diff) | |
parent | 225fba216261b0e24273f5f4eee504e3c7bd0255 (diff) |
Merge tag 'microblaze-3.16-rc1' of git://git.monstr.eu/linux-2.6-microblaze into next
Pull Microblaze updates from Michal Simek:
- cleanup PCI and DMA handling
- use generic device.h
- some cleanups
* tag 'microblaze-3.16-rc1' of git://git.monstr.eu/linux-2.6-microblaze:
microblaze: Fix typo in head.S s/substract/subtract/
microblaze: remove check for CONFIG_XILINX_CONSOLE
microblaze: Use generic device.h
microblaze: Do not setup empty unmap_sg function
microblaze: Remove device_to_mask
microblaze: Clean device dma_ops structure
microblaze: Cleanup PCI_DRAM_OFFSET handling
microblaze: Do not setup pci_dma_ops
microblaze: Return default dma operations
microblaze: Enable SERIAL_OF_PLATFORM
Diffstat (limited to 'arch/microblaze/pci/pci-common.c')
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index a59de1bc1ce0..9037914f6985 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -47,24 +47,9 @@ static int global_phb_number; /* Global phb counter */ | |||
47 | /* ISA Memory physical address */ | 47 | /* ISA Memory physical address */ |
48 | resource_size_t isa_mem_base; | 48 | resource_size_t isa_mem_base; |
49 | 49 | ||
50 | static struct dma_map_ops *pci_dma_ops = &dma_direct_ops; | ||
51 | |||
52 | unsigned long isa_io_base; | 50 | unsigned long isa_io_base; |
53 | unsigned long pci_dram_offset; | ||
54 | static int pci_bus_count; | 51 | static int pci_bus_count; |
55 | 52 | ||
56 | |||
57 | void set_pci_dma_ops(struct dma_map_ops *dma_ops) | ||
58 | { | ||
59 | pci_dma_ops = dma_ops; | ||
60 | } | ||
61 | |||
62 | struct dma_map_ops *get_pci_dma_ops(void) | ||
63 | { | ||
64 | return pci_dma_ops; | ||
65 | } | ||
66 | EXPORT_SYMBOL(get_pci_dma_ops); | ||
67 | |||
68 | struct pci_controller *pcibios_alloc_controller(struct device_node *dev) | 53 | struct pci_controller *pcibios_alloc_controller(struct device_node *dev) |
69 | { | 54 | { |
70 | struct pci_controller *phb; | 55 | struct pci_controller *phb; |
@@ -866,10 +851,6 @@ void pcibios_setup_bus_devices(struct pci_bus *bus) | |||
866 | */ | 851 | */ |
867 | set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); | 852 | set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); |
868 | 853 | ||
869 | /* Hook up default DMA ops */ | ||
870 | set_dma_ops(&dev->dev, pci_dma_ops); | ||
871 | dev->dev.archdata.dma_data = (void *)PCI_DRAM_OFFSET; | ||
872 | |||
873 | /* Read default IRQs and fixup if necessary */ | 854 | /* Read default IRQs and fixup if necessary */ |
874 | dev->irq = of_irq_parse_and_map_pci(dev, 0, 0); | 855 | dev->irq = of_irq_parse_and_map_pci(dev, 0, 0); |
875 | } | 856 | } |