Commit 6c3bbdd6 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Michal Simek

microblaze: pci-common cleanup

Use set_dma_ops and remove now used-once oddly named temp pointer sd.
Signed-off-by: default avatarMilton Miller <miltonm@bga.com>
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 67f4aaa2
...@@ -1060,8 +1060,6 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus) ...@@ -1060,8 +1060,6 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus)
bus->number, bus->self ? pci_name(bus->self) : "PHB"); bus->number, bus->self ? pci_name(bus->self) : "PHB");
list_for_each_entry(dev, &bus->devices, bus_list) { list_for_each_entry(dev, &bus->devices, bus_list) {
struct dev_archdata *sd = &dev->dev.archdata;
/* Setup OF node pointer in archdata */ /* Setup OF node pointer in archdata */
dev->dev.of_node = pci_device_to_OF_node(dev); dev->dev.of_node = pci_device_to_OF_node(dev);
...@@ -1071,8 +1069,8 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus) ...@@ -1071,8 +1069,8 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus)
set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); set_dev_node(&dev->dev, pcibus_to_node(dev->bus));
/* Hook up default DMA ops */ /* Hook up default DMA ops */
sd->dma_ops = pci_dma_ops; set_dma_ops(&dev->dev, pci_dma_ops);
sd->dma_data = (void *)PCI_DRAM_OFFSET; dev->dev.archdata.dma_data = (void *)PCI_DRAM_OFFSET;
/* Read default IRQs and fixup if necessary */ /* Read default IRQs and fixup if necessary */
pci_read_irq_line(dev); pci_read_irq_line(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment