[alsa-devel] [PATCH] sound/soc/fsl: remove leftover release_mem_region
Lars-Peter Clausen
lars at metafoo.de
Sun Oct 13 20:36:59 CEST 2013
On 10/13/2013 07:38 PM, Wolfram Sang wrote:
> When converting this driver to devm_ioremap_resource, the removal of this now
> unneeded function has been forgotten.
>
> Signed-off-by: Wolfram Sang <wsa at the-dreams.de>
> ---
> sound/soc/fsl/imx-ssi.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c
> index f58bcd8..b2cc743 100644
> --- a/sound/soc/fsl/imx-ssi.c
> +++ b/sound/soc/fsl/imx-ssi.c
> @@ -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));
This should trigger a warning about res being unused now.
> clk_disable_unprepare(ssi->clk);
> snd_soc_set_ac97_ops(NULL);
>
>
More information about the Alsa-devel
mailing list