aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/bestcomm/bestcomm.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2016-09-10 19:56:04 +1000
committerVinod Koul <vinod.koul@intel.com>2016-09-14 18:57:38 +0530
commitaa570be6de67f3772cc850a7bfbe659214aa9ee4 (patch)
tree4e718f1b9d20a43cf0d1b8a413508d031bcbd06c /drivers/dma/bestcomm/bestcomm.c
parentLinux 4.8-rc1 (diff)
downloadlinux-dev-aa570be6de67f3772cc850a7bfbe659214aa9ee4.tar.xz
linux-dev-aa570be6de67f3772cc850a7bfbe659214aa9ee4.zip
dmaengine: NO_IRQ removal from powerpc-only drivers
We'd like to eventually remove NO_IRQ on powerpc, so remove usages of it from powerpc-only drivers. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/bestcomm/bestcomm.c')
-rw-r--r--drivers/dma/bestcomm/bestcomm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/bestcomm/bestcomm.c b/drivers/dma/bestcomm/bestcomm.c
index 7ce843723003..7a67b8345092 100644
--- a/drivers/dma/bestcomm/bestcomm.c
+++ b/drivers/dma/bestcomm/bestcomm.c
@@ -82,7 +82,7 @@ bcom_task_alloc(int bd_count, int bd_size, int priv_size)
/* Get IRQ of that task */
tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum);
- if (tsk->irq == NO_IRQ)
+ if (!tsk->irq)
goto error;
/* Init the BDs, if needed */
@@ -104,7 +104,7 @@ bcom_task_alloc(int bd_count, int bd_size, int priv_size)
error:
if (tsk) {
- if (tsk->irq != NO_IRQ)
+ if (tsk->irq)
irq_dispose_mapping(tsk->irq);
bcom_sram_free(tsk->bd);
kfree(tsk->cookie);