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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6782dfe44acedf1e583d84e9e0d4f966d8e9befa;p=openwrt%2Fstaging%2Fblogic.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 748e140c5a18..b1b45eb42cb2 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);