aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2010-09-15 14:05:51 -0400
committerMichal Simek <monstr@monstr.eu>2010-10-21 01:51:54 -0400
commit6c3bbdd6609aefa6494ee3020f80108dbdccf755 (patch)
treec6a704dc24cb3f74597b50395e3b7a9c294a940d
parent67f4aaa21cf8cf09726cd26b506f3407ad7f11f9 (diff)
microblaze: pci-common cleanup
Use set_dma_ops and remove now used-once oddly named temp pointer sd. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r--arch/microblaze/pci/pci-common.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 2bc57a836d71..e363615d6798 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -1060,8 +1060,6 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus)
1060 bus->number, bus->self ? pci_name(bus->self) : "PHB"); 1060 bus->number, bus->self ? pci_name(bus->self) : "PHB");
1061 1061
1062 list_for_each_entry(dev, &bus->devices, bus_list) { 1062 list_for_each_entry(dev, &bus->devices, bus_list) {
1063 struct dev_archdata *sd = &dev->dev.archdata;
1064
1065 /* Setup OF node pointer in archdata */ 1063 /* Setup OF node pointer in archdata */
1066 dev->dev.of_node = pci_device_to_OF_node(dev); 1064 dev->dev.of_node = pci_device_to_OF_node(dev);
1067 1065
@@ -1071,8 +1069,8 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus)
1071 set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); 1069 set_dev_node(&dev->dev, pcibus_to_node(dev->bus));
1072 1070
1073 /* Hook up default DMA ops */ 1071 /* Hook up default DMA ops */
1074 sd->dma_ops = pci_dma_ops; 1072 set_dma_ops(&dev->dev, pci_dma_ops);
1075 sd->dma_data = (void *)PCI_DRAM_OFFSET; 1073 dev->dev.archdata.dma_data = (void *)PCI_DRAM_OFFSET;
1076 1074
1077 /* Read default IRQs and fixup if necessary */ 1075 /* Read default IRQs and fixup if necessary */
1078 pci_read_irq_line(dev); 1076 pci_read_irq_line(dev);