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 <timur@freescale.com> Acked-by: Li Yang <leoli@freescale.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
d86be86e9a
commit
6782dfe44a
|
@ -890,7 +890,8 @@ err_no_reg:
|
||||||
|
|
||||||
static void fsl_dma_chan_remove(struct fsl_dma_chan *fchan)
|
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);
|
list_del(&fchan->common.device_node);
|
||||||
iounmap(fchan->reg_base);
|
iounmap(fchan->reg_base);
|
||||||
kfree(fchan);
|
kfree(fchan);
|
||||||
|
|
Loading…
Reference in New Issue