aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma/fsldma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 748e140c5a18..b1b45eb42cb2 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -890,7 +890,8 @@ err_no_reg:
890 890
891static void fsl_dma_chan_remove(struct fsl_dma_chan *fchan) 891static void fsl_dma_chan_remove(struct fsl_dma_chan *fchan)
892{ 892{
893 free_irq(fchan->irq, fchan); 893 if (fchan->irq != NO_IRQ)
894 free_irq(fchan->irq, fchan);
894 list_del(&fchan->common.device_node); 895 list_del(&fchan->common.device_node);
895 iounmap(fchan->reg_base); 896 iounmap(fchan->reg_base);
896 kfree(fchan); 897 kfree(fchan);