dmaengine: NO_IRQ removal from powerpc-only drivers
[linux-2.6-microblaze.git] / drivers / dma / bestcomm / bestcomm.c
index 7ce8437..7a67b83 100644 (file)
@@ -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);