Skip to contentSkip to conversation

sound/soc/fsl: remove leftover release_mem_region

PATCH Superseded Wolfram Sang 2 participants 2 messages Oct 13, 2013

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound/soc/fsl: remove leftover release_mem_region

When converting this driver to devm_ioremap_resource, the removal of this now unneeded function has been forgotten.

---
 sound/soc/fsl/imx-ssi.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/fsl/imx-ssi.c +0 -2
index f58bcd8..b2cc743 100644
@@ -615,7 +615,6 @@ failed_pcm_dma:
 failed_pcm_fiq:
 	snd_soc_unregister_component(&pdev->dev);
 failed_register:
-	release_mem_region(res->start, resource_size(res));
 	clk_disable_unprepare(ssi->clk);
 failed_clk:
 	snd_soc_set_ac97_ops(NULL);
@@ -636,7 +635,6 @@ static int imx_ssi_remove(struct platform_device *pdev)
 	if (ssi->flags & IMX_SSI_USE_AC97)
 		ac97_ssi = NULL;
 
-	release_mem_region(res->start, resource_size(res));
 	clk_disable_unprepare(ssi->clk);
 	snd_soc_set_ac97_ops(NULL);
 
Signature · 1 line
1.8.4.rc3
#1 lore raw
Quoted 21 lines · Wolfram Sang

When converting this driver to devm_ioremap_resource, the removal of this now unneeded function has been forgotten.

---
  sound/soc/fsl/imx-ssi.c | 2 --
  1 file changed, 2 deletions(-)
sound/soc/fsl/imx-ssi.c +0 -1
index f58bcd8..b2cc743 100644
@@ -615,7 +615,6 @@ failed_pcm_dma:
  failed_pcm_fiq:
  	snd_soc_unregister_component(&pdev->dev);
  failed_register:
-	release_mem_region(res->start, resource_size(res));
  	clk_disable_unprepare(ssi->clk);
  failed_clk:
  	snd_soc_set_ac97_ops(NULL);

sound/soc/fsl/imx-ssi.c static int imx_ssi_remove(struct platform_device *pdev) · line 639

Quoted 4 lines
sound/soc/fsl/imx-ssi.c +0 -1
@@ -636,7 +635,6 @@ static int imx_ssi_remove(struct platform_device *pdev)
  	if (ssi->flags & IMX_SSI_USE_AC97)
  		ac97_ssi = NULL;
 
-	release_mem_region(res->start, resource_size(res));

This should trigger a warning about res being unused now.

Quoted 4 lines
sound/soc/fsl/imx-ssi.c +0 -0
  	clk_disable_unprepare(ssi->clk);
  	snd_soc_set_ac97_ops(NULL);