struct device *dev = pci->dev;
struct device_node *np = dev->of_node;
resource_size_t iobase;
---------- struct resource_entry *win;
++++++++++ struct resource_entry *win, *tmp;
------- --- err = of_pci_get_host_bridge_resources(np, 0, 0xff, &pci->resources, &iobase);
+++++++ +++ err = of_pci_get_host_bridge_resources(np, 0, 0xff, &pci->resources,
+++++++ +++ &iobase);
if (err)
return err;
return IRQ_HANDLED;
}
----------/**
---------- * xilinx_pcie_free_irq_domain - Free IRQ domain
---------- * @port: PCIe port information
---------- */
----------static void xilinx_pcie_free_irq_domain(struct xilinx_pcie_port *port)
----------{
---------- int i;
---------- u32 irq, num_irqs;
----------
---------- /* Free IRQ Domain */
---------- if (IS_ENABLED(CONFIG_PCI_MSI)) {
----------
---------- free_pages(port->msi_pages, 0);
----------
---------- num_irqs = XILINX_NUM_MSI_IRQS;
---------- } else {
---------- /* INTx */
---------- num_irqs = 4;
---------- }
----------
---------- for (i = 0; i < num_irqs; i++) {
--------- irq = irq_find_mapping(port->irq_domain, i);
- irq = irq_find_mapping(port->leg_domain, i);
---------- if (irq > 0)
---------- irq_dispose_mapping(irq);
---------- }
---------
--------- irq_domain_remove(port->irq_domain);
- if (port->leg_domain)
- irq_domain_remove(port->leg_domain);
- if (port->msi_domain)
- irq_domain_remove(port->msi_domain);
----------}
----------
/**
* xilinx_pcie_init_irq_domain - Initialize IRQ domain
* @port: PCIe port information