Commit eaae183f authored by Mark Brown's avatar Mark Brown

ASoC: Add a bit of resource unwinding in the S3C IISv4 driver

There's much more needed but this'll get us started.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent f5d1e5ed
...@@ -187,7 +187,18 @@ static __devinit int s3c64xx_i2sv4_dev_probe(struct platform_device *pdev) ...@@ -187,7 +187,18 @@ static __devinit int s3c64xx_i2sv4_dev_probe(struct platform_device *pdev)
static __devexit int s3c64xx_i2sv4_dev_remove(struct platform_device *pdev) static __devexit int s3c64xx_i2sv4_dev_remove(struct platform_device *pdev)
{ {
struct s3c_i2sv2_info *i2s = &s3c64xx_i2sv4;
struct resource *res;
snd_soc_unregister_dai(&pdev->dev); snd_soc_unregister_dai(&pdev->dev);
clk_put(i2s->iis_cclk);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (res)
release_mem_region(res->start, resource_size(res));
else
dev_warn(&pdev->dev, "Unable to get I2S SFR address\n");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment