diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-12 12:19:54 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-06-12 10:22:02 +0530 |
commit | 83eb5cfcd5e35967d5e136d1266378933372a41a (patch) | |
tree | d446366a9cc51e402641cdfd19d21cd7e9a8e897 /drivers/dma/dw-edma | |
parent | fe333389ccce1f1e9c0807ee904fba0ca79fa3a9 (diff) | |
download | linux-stable-83eb5cfcd5e35967d5e136d1266378933372a41a.tar.gz linux-stable-83eb5cfcd5e35967d5e136d1266378933372a41a.tar.bz2 linux-stable-83eb5cfcd5e35967d5e136d1266378933372a41a.zip |
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: Hulk Robot <hulkci@huawei.com>
Fixes: e63d79d1ffcd ("dmaengine: Add Synopsys eDMA IP core driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/dw-edma')
-rw-r--r-- | drivers/dma/dw-edma/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw-edma/Kconfig b/drivers/dma/dw-edma/Kconfig index c0838ce959e4..7ff17b2db6a1 100644 --- a/drivers/dma/dw-edma/Kconfig +++ b/drivers/dma/dw-edma/Kconfig @@ -2,6 +2,7 @@ config DW_EDMA tristate "Synopsys DesignWare eDMA controller driver" + depends on PCI && PCI_MSI select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help |