aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh/shdmac.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2013-08-26 08:27:51 -0400
committerVinod Koul <vinod.koul@intel.com>2013-08-27 04:56:37 -0400
commite5ffa401eacd0e74178e20ba932200fc9fe41c07 (patch)
treee7b05ef8c826d4a7667de4f6151deadc17c6a868 /drivers/dma/sh/shdmac.c
parenteb262a5419708319a3174d4ddf2777f472779182 (diff)
DMA: shdma: fix a bad merge - remove free_irq()
A bad merge resulted in a left-over free_irq() call. This patch removes it. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sh/shdmac.c')
-rw-r--r--drivers/dma/sh/shdmac.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/dma/sh/shdmac.c b/drivers/dma/sh/shdmac.c
index 6128715973a4..33ce47eef0bf 100644
--- a/drivers/dma/sh/shdmac.c
+++ b/drivers/dma/sh/shdmac.c
@@ -901,14 +901,9 @@ static int sh_dmae_remove(struct platform_device *pdev)
901{ 901{
902 struct sh_dmae_device *shdev = platform_get_drvdata(pdev); 902 struct sh_dmae_device *shdev = platform_get_drvdata(pdev);
903 struct dma_device *dma_dev = &shdev->shdma_dev.dma_dev; 903 struct dma_device *dma_dev = &shdev->shdma_dev.dma_dev;
904 struct resource *res;
905 int errirq = platform_get_irq(pdev, 0);
906 904
907 dma_async_device_unregister(dma_dev); 905 dma_async_device_unregister(dma_dev);
908 906
909 if (errirq > 0)
910 free_irq(errirq, shdev);
911
912 spin_lock_irq(&sh_dmae_lock); 907 spin_lock_irq(&sh_dmae_lock);
913 list_del_rcu(&shdev->node); 908 list_del_rcu(&shdev->node);
914 spin_unlock_irq(&sh_dmae_lock); 909 spin_unlock_irq(&sh_dmae_lock);