diff options
author | Mark Brown <broonie@linaro.org> | 2013-11-08 11:43:36 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-08 11:43:36 +0100 |
commit | 6c61bbf0e844a035736272bd863d724d5f112ac5 (patch) | |
tree | dba0f6231f916edd6fe32ca1e6256b75ee9ae5d5 /sound | |
parent | Merge remote-tracking branch 'asoc/topic/sn95031' into asoc-next (diff) | |
parent | ASoC: SPEAr spdif_out: Remove redundant variable (diff) | |
download | linux-6c61bbf0e844a035736272bd863d724d5f112ac5.tar.xz linux-6c61bbf0e844a035736272bd863d724d5f112ac5.zip |
Merge remote-tracking branch 'asoc/topic/spear' into asoc-next
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/spear/spdif_in.c | 12 | ||||
-rw-r--r-- | sound/soc/spear/spdif_out.c | 14 |
2 files changed, 4 insertions, 22 deletions
diff --git a/sound/soc/spear/spdif_in.c b/sound/soc/spear/spdif_in.c index 63acfeb4b69d..21a8c954af1c 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; } - return snd_soc_register_component(&pdev->dev, &spdif_in_component, - &spdif_in_dai, 1); -} - -static int spdif_in_remove(struct platform_device *pdev) -{ - snd_soc_unregister_component(&pdev->dev); - - return 0; + return devm_snd_soc_register_component(&pdev->dev, &spdif_in_component, + &spdif_in_dai, 1); } static struct platform_driver spdif_in_driver = { .probe = spdif_in_probe, - .remove = spdif_in_remove, .driver = { .name = "spdif-in", .owner = THIS_MODULE, diff --git a/sound/soc/spear/spdif_out.c b/sound/soc/spear/spdif_out.c index 2fdf68c98d22..b6ef6f78dc78 100644 --- a/sound/soc/spear/spdif_out.c +++ b/sound/soc/spear/spdif_out.c @@ -280,7 +280,6 @@ static int spdif_out_probe(struct platform_device *pdev) struct spdif_out_dev *host; struct spear_spdif_platform_data *pdata; struct resource *res; - int ret; host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); if (!host) { @@ -307,16 +306,8 @@ static int spdif_out_probe(struct platform_device *pdev) dev_set_drvdata(&pdev->dev, host); - ret = snd_soc_register_component(&pdev->dev, &spdif_out_component, - &spdif_out_dai, 1); - return ret; -} - -static int spdif_out_remove(struct platform_device *pdev) -{ - snd_soc_unregister_component(&pdev->dev); - - return 0; + return devm_snd_soc_register_component(&pdev->dev, &spdif_out_component, + &spdif_out_dai, 1); } #ifdef CONFIG_PM @@ -357,7 +348,6 @@ static SIMPLE_DEV_PM_OPS(spdif_out_dev_pm_ops, spdif_out_suspend, \ static struct platform_driver spdif_out_driver = { .probe = spdif_out_probe, - .remove = spdif_out_remove, .driver = { .name = "spdif-out", .owner = THIS_MODULE, |