Skip to content

Commit eea30c7

Browse files
floatiousbjorn-helgaas
authored andcommitted
PCI: qcom-ep: Remove redundant edma.nr_irqs initialization
dw_pcie_edma_irq_verify() already parses device tree for either "dma" (if there is a single IRQ for all DMA channels) or "dmaX" (if there is one IRQ per DMA channel), and initializes dma.nr_irqs accordingly. Additionally, the probing of the eDMA driver will fail if neither "dma" nor "dmaX" is defined in the device tree. Therefore there is no need for a glue driver to specify edma.nr_irqs, so remove the redundant edma.nr_irqs initialization. Signed-off-by: Niklas Cassel <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> [bhelgaas: fix typos] Signed-off-by: Bjorn Helgaas <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 09fefb2 commit eea30c7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pci/controller/dwc/pcie-qcom-ep.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ static int qcom_pcie_ep_probe(struct platform_device *pdev)
874874
pcie_ep->pci.dev = dev;
875875
pcie_ep->pci.ops = &pci_ops;
876876
pcie_ep->pci.ep.ops = &pci_ep_ops;
877-
pcie_ep->pci.edma.nr_irqs = 1;
878877

879878
pcie_ep->cfg = of_device_get_match_data(dev);
880879
if (pcie_ep->cfg && pcie_ep->cfg->hdma_support) {

0 commit comments

Comments
 (0)