summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-08-26 01:43:08 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-08-26 01:43:08 +0200
commit985e775573943327bba16326013f56f62c43292c (patch)
treebb48056d6a1f2499ebb9e7e1f7b4f3d827af975b /drivers
parentMerge tag 'drm-fixes-for-v4.13-rc7' of git://people.freedesktop.org/~airlied/... (diff)
parentdmaengine: tegra210-adma: fix of_irq_get() error check (diff)
downloadlinux-985e775573943327bba16326013f56f62c43292c.tar.xz
linux-985e775573943327bba16326013f56f62c43292c.zip
Merge tag 'dmaengine-fix-4.13-rc7' of git://git.infradead.org/users/vkoul/slave-dma
Pull dmaengine fix from Vinod Koul: "A single fix for tegra210-adma driver to check of_irq_get() error" * tag 'dmaengine-fix-4.13-rc7' of git://git.infradead.org/users/vkoul/slave-dma: dmaengine: tegra210-adma: fix of_irq_get() error check
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/tegra210-adma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/tegra210-adma.c b/drivers/dma/tegra210-adma.c
index b10cbaa82ff5..b26256f23d67 100644
--- a/drivers/dma/tegra210-adma.c
+++ b/drivers/dma/tegra210-adma.c
@@ -717,8 +717,8 @@ static int tegra_adma_probe(struct platform_device *pdev)
tdc->chan_addr = tdma->base_addr + ADMA_CH_REG_OFFSET(i);
tdc->irq = of_irq_get(pdev->dev.of_node, i);
- if (tdc->irq < 0) {
- ret = tdc->irq;
+ if (tdc->irq <= 0) {
+ ret = tdc->irq ?: -ENXIO;
goto irq_dispose;
}