From: Peter Korsgaard Date: Thu, 15 Jan 2009 05:32:58 +0000 (-0700) Subject: fsldma: check for NO_IRQ in fsl_dma_chan_remove() X-Git-Tag: v2.6.29-rc3~34^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6782dfe44acedf1e583d84e9e0d4f966d8e9befa;p=linux-2.6-omap-h63xx.git fsldma: check for NO_IRQ in fsl_dma_chan_remove() There's no per-channel IRQ on mpc83xx, so only call free_irq if we have one. Acked-by: Timur Tabi Acked-by: Li Yang Signed-off-by: Peter Korsgaard Signed-off-by: Dan Williams --- diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 748e140c5a1..b1b45eb42cb 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c @@ -890,7 +890,8 @@ err_no_reg: static void fsl_dma_chan_remove(struct fsl_dma_chan *fchan) { - free_irq(fchan->irq, fchan); + if (fchan->irq != NO_IRQ) + free_irq(fchan->irq, fchan); list_del(&fchan->common.device_node); iounmap(fchan->reg_base); kfree(fchan);