diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-10-26 11:18:21 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-11-25 00:41:08 -0500 |
commit | e9bb8a9df316a2480d316af7b242f40cba3b69b6 (patch) | |
tree | 94bda671be7fe25fbba516d03bbe69d942c9ad0e | |
parent | 85f57752b33cf12f1d583f0c10b752292de00abe (diff) |
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>
-rw-r--r-- | drivers/dma/hsu/pci.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/dma/hsu/pci.c b/drivers/dma/hsu/pci.c index b51639f045ed..4875fa428e81 100644 --- a/drivers/dma/hsu/pci.c +++ b/drivers/dma/hsu/pci.c | |||
@@ -77,13 +77,15 @@ static int hsu_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
77 | if (!chip) | 77 | if (!chip) |
78 | return -ENOMEM; | 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 | chip->dev = &pdev->dev; | 84 | chip->dev = &pdev->dev; |
81 | chip->regs = pcim_iomap_table(pdev)[0]; | 85 | chip->regs = pcim_iomap_table(pdev)[0]; |
82 | chip->length = pci_resource_len(pdev, 0); | 86 | chip->length = pci_resource_len(pdev, 0); |
83 | chip->offset = HSU_PCI_CHAN_OFFSET; | 87 | chip->offset = HSU_PCI_CHAN_OFFSET; |
84 | chip->irq = pdev->irq; | 88 | chip->irq = pci_irq_vector(pdev, 0); |
85 | |||
86 | pci_enable_msi(pdev); | ||
87 | 89 | ||
88 | ret = hsu_dma_probe(chip); | 90 | ret = hsu_dma_probe(chip); |
89 | if (ret) | 91 | if (ret) |