dmaengine: dw-edma: use PCI_IRQ_MSI_TYPES where appropriate
Subsystems (2)
PATCH 6/15 dmaengine: dw-edma: use PCI_IRQ_MSI_TYPES where appropriate
Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it.
Signed-off-by Piotr Stankiewicz <[email protected]>
Reviewed-by Andy Shevchenko <[email protected]>
--- drivers/dma/dw-edma/dw-edma-pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-edma/dw-edma-pcie.c +1 -1
@@ -117,7 +117,7 @@ static int dw_edma_pcie_probe(struct pci_dev *pdev,/* IRQs allocation */ nr_irqs =pci_alloc_irq_vectors (pdev,1 , pdata->irqs, -PCI_IRQ_MSI |PCI_IRQ_MSIX ); +PCI_IRQ_MSI_TYPES );if (nr_irqs <1 ) {pci_err (pdev,"fail to alloc IRQ vector (number of IRQs=%u)\n" , nr_irqs);
Signature · 1 line
2.17.2
Quoted 2 lines · Piotr Stankiewicz
Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it.
Applied, thanks
Signature · 1 line
~Vinod
Quoted 5 lines · Vinod Koul
Quoted 2 lines · Piotr Stankiewicz
Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it.
Applied, thanks
Dropped now.. PCI_IRQ_MSI_TYPES is not upstream yet!
Feel free to take in PCI tree with my ack
Acked-by Vinod Koul <[email protected]>
Signature · 1 line
~Vinod