Commit 83eb5cfc authored by YueHaibing's avatar YueHaibing Committed by Vinod Koul

dmaengine: dw-edma: Fix build error without CONFIG_PCI_MSI

If CONFIG_PCI_MSI is not set, building with CONFIG_DW_EDMA
fails:

drivers/dma/dw-edma/dw-edma-core.c: In function dw_edma_irq_request:
drivers/dma/dw-edma/dw-edma-core.c:784:21: error: implicit declaration of function pci_irq_vector; did you mean rcu_irq_enter? [-Werror=implicit-function-declaration]
   err = request_irq(pci_irq_vector(to_pci_dev(dev), 0),
                     ^~~~~~~~~~~~~~
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: e63d79d1 ("dmaengine: Add Synopsys eDMA IP core driver")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent fe333389
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
config DW_EDMA config DW_EDMA
tristate "Synopsys DesignWare eDMA controller driver" tristate "Synopsys DesignWare eDMA controller driver"
depends on PCI && PCI_MSI
select DMA_ENGINE select DMA_ENGINE
select DMA_VIRTUAL_CHANNELS select DMA_VIRTUAL_CHANNELS
help help
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment