diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-06-12 22:18:01 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-13 10:25:52 +0100 |
commit | d8f4e17fdd4f5e6fe6ef07496296fa88e150beda (patch) | |
tree | d4c97d192e8961d66d94722ddb4f14e8d45e760e /sound/soc/spear/spdif_in.c | |
parent | e58070ee4fdf797c47cb296992ce8db3df715eca (diff) |
ASoC: SPEAr spdif_{in,out}: fix fallout of previous cleanup
The patch that resulted in
bfcc74e (ASoC: SPEAr spdif_{in,out}: use devm for clk and a few
more cleanups)
was broken and applied on a newer tree than it was created for. So
bfcc74e introduced unbalanced clk handling, two warnings about unused
variables and passed 3 arguments to a function only taking 2. This
commit fixes that.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/spear/spdif_in.c')
-rw-r--r-- | sound/soc/spear/spdif_in.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/soc/spear/spdif_in.c b/sound/soc/spear/spdif_in.c index f0071ddbfa7..63acfeb4b69 100644 --- a/sound/soc/spear/spdif_in.c +++ b/sound/soc/spear/spdif_in.c @@ -257,20 +257,12 @@ static int spdif_in_probe(struct platform_device *pdev) return ret; } - ret = snd_soc_register_component(&pdev->dev, &spdif_in_component, + return snd_soc_register_component(&pdev->dev, &spdif_in_component, &spdif_in_dai, 1); - if (ret != 0) { - clk_put(host->clk); - return ret; - } - - return 0; } static int spdif_in_remove(struct platform_device *pdev) { - struct spdif_in_dev *host = dev_get_drvdata(&pdev->dev); - snd_soc_unregister_component(&pdev->dev); return 0; |