diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-10 05:56:04 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-09-14 09:27:38 -0400 |
commit | aa570be6de67f3772cc850a7bfbe659214aa9ee4 (patch) | |
tree | 4e718f1b9d20a43cf0d1b8a413508d031bcbd06c /drivers/dma/ppc4xx | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
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/ppc4xx')
-rw-r--r-- | drivers/dma/ppc4xx/adma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index da3688b94bdc..66bd96724b2f 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c | |||
@@ -3891,7 +3891,7 @@ static int ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev, | |||
3891 | np = ofdev->dev.of_node; | 3891 | np = ofdev->dev.of_node; |
3892 | if (adev->id != PPC440SPE_XOR_ID) { | 3892 | if (adev->id != PPC440SPE_XOR_ID) { |
3893 | adev->err_irq = irq_of_parse_and_map(np, 1); | 3893 | adev->err_irq = irq_of_parse_and_map(np, 1); |
3894 | if (adev->err_irq == NO_IRQ) { | 3894 | if (!adev->err_irq) { |
3895 | dev_warn(adev->dev, "no err irq resource?\n"); | 3895 | dev_warn(adev->dev, "no err irq resource?\n"); |
3896 | *initcode = PPC_ADMA_INIT_IRQ2; | 3896 | *initcode = PPC_ADMA_INIT_IRQ2; |
3897 | adev->err_irq = -ENXIO; | 3897 | adev->err_irq = -ENXIO; |
@@ -3902,7 +3902,7 @@ static int ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev, | |||
3902 | } | 3902 | } |
3903 | 3903 | ||
3904 | adev->irq = irq_of_parse_and_map(np, 0); | 3904 | adev->irq = irq_of_parse_and_map(np, 0); |
3905 | if (adev->irq == NO_IRQ) { | 3905 | if (!adev->irq) { |
3906 | dev_err(adev->dev, "no irq resource\n"); | 3906 | dev_err(adev->dev, "no irq resource\n"); |
3907 | *initcode = PPC_ADMA_INIT_IRQ1; | 3907 | *initcode = PPC_ADMA_INIT_IRQ1; |
3908 | ret = -ENXIO; | 3908 | ret = -ENXIO; |