diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-05-16 07:37:02 -0400 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-06-04 00:59:57 -0400 |
commit | 193bca5934db1ca1d0ffcedf551030ff5556a07c (patch) | |
tree | e5ae4908176bd9b26f1b73407892d9b64be12410 /arch/microblaze/pci/pci-common.c | |
parent | 28d1880c6872af3d1c17bc46da5795b9eba04bee (diff) |
microblaze: Cleanup PCI_DRAM_OFFSET handling
PCI_DRAM_OFFSET/pci_dram_offset is 0 all the time and there
is no difference for PCI and !PCI cases.
Also remove the whole code which setup archdata.dma_data
which is completely unused.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/pci/pci-common.c')
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 99ac12ad4b9b..2cf412f4db4e 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -48,7 +48,6 @@ static int global_phb_number; /* Global phb counter */ | |||
48 | resource_size_t isa_mem_base; | 48 | resource_size_t isa_mem_base; |
49 | 49 | ||
50 | unsigned long isa_io_base; | 50 | unsigned long isa_io_base; |
51 | unsigned long pci_dram_offset; | ||
52 | static int pci_bus_count; | 51 | static int pci_bus_count; |
53 | 52 | ||
54 | struct pci_controller *pcibios_alloc_controller(struct device_node *dev) | 53 | struct pci_controller *pcibios_alloc_controller(struct device_node *dev) |
@@ -872,8 +871,6 @@ void pcibios_setup_bus_devices(struct pci_bus *bus) | |||
872 | */ | 871 | */ |
873 | set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); | 872 | set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); |
874 | 873 | ||
875 | dev->dev.archdata.dma_data = (void *)PCI_DRAM_OFFSET; | ||
876 | |||
877 | /* Read default IRQs and fixup if necessary */ | 874 | /* Read default IRQs and fixup if necessary */ |
878 | dev->irq = of_irq_parse_and_map_pci(dev, 0, 0); | 875 | dev->irq = of_irq_parse_and_map_pci(dev, 0, 0); |
879 | } | 876 | } |