Skip to content

Commit

Permalink
ASoC: nuc900-ac97: fix a memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Acked-by: Wan ZongShun <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
AxelLin authored and broonie committed Nov 24, 2010
1 parent 59e2102 commit d6f443a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/nuc900/nuc900-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,14 @@ static int __devinit nuc900_ac97_drvprobe(struct platform_device *pdev)

static int __devexit nuc900_ac97_drvremove(struct platform_device *pdev)
{

snd_soc_unregister_dai(&pdev->dev);

clk_put(nuc900_ac97_data->clk);
iounmap(nuc900_ac97_data->mmio);
release_mem_region(nuc900_ac97_data->res->start,
resource_size(nuc900_ac97_data->res));

kfree(nuc900_ac97_data);
nuc900_ac97_data = NULL;

return 0;
Expand Down

0 comments on commit d6f443a

Please sign in to comment.