Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: hsu: pci: switch to new API for IRQ allocation

There is new API in place which provides allocation mechanism of interrupts for
PCI devices. Use it in the HSU DMA driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Andy Shevchenko and committed by
Vinod Koul
e9bb8a9d 85f57752

+5 -3
+5 -3
drivers/dma/hsu/pci.c
··· 77 77 if (!chip) 78 78 return -ENOMEM; 79 79 80 + ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); 81 + if (ret < 0) 82 + return ret; 83 + 80 84 chip->dev = &pdev->dev; 81 85 chip->regs = pcim_iomap_table(pdev)[0]; 82 86 chip->length = pci_resource_len(pdev, 0); 83 87 chip->offset = HSU_PCI_CHAN_OFFSET; 84 - chip->irq = pdev->irq; 85 - 86 - pci_enable_msi(pdev); 88 + chip->irq = pci_irq_vector(pdev, 0); 87 89 88 90 ret = hsu_dma_probe(chip); 89 91 if (ret)