Message ID | 4f999e1b-9c10-453c-b68b-1495861d425c@web.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | dmaengine: ppc4xx: Call of_node_put(np) only once in ppc440spe_adma_setup_irqs() | expand |
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index 7b78759ac734..25d5ec028d68 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c @@ -3938,13 +3938,13 @@ static int ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev, goto err_req2; } adev->i2o_reg = of_iomap(np, 0); + of_node_put(np); if (!adev->i2o_reg) { pr_err("%s: failed to map I2O registers\n", __func__); - of_node_put(np); ret = -EINVAL; goto err_req2; } - of_node_put(np); + /* Unmask 'CS FIFO Attention' interrupts and * enable generating interrupts on errors */