diff options
author | Mark Brown <broonie@kernel.org> | 2018-10-21 16:59:23 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-21 16:59:23 +0100 |
commit | 65dfb6d6dd2850f3f99f08536d2b14190350c854 (patch) | |
tree | e8b0468b3e4d4d54dbea68c9ffce9fd8648be2aa /sound/soc/omap/omap-hdmi-audio.c | |
parent | Merge branch 'asoc-4.19' into asoc-linus (diff) | |
parent | ASoC: sun4i-i2s: move code from startup/shutdown hooks into pm_runtime hooks (diff) | |
download | linux-dev-65dfb6d6dd2850f3f99f08536d2b14190350c854.tar.xz linux-dev-65dfb6d6dd2850f3f99f08536d2b14190350c854.zip |
Merge branch 'asoc-4.20' into asoc-next
Diffstat (limited to 'sound/soc/omap/omap-hdmi-audio.c')
-rw-r--r-- | sound/soc/omap/omap-hdmi-audio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c index 8a99a8837dc9..673a9eb153b2 100644 --- a/sound/soc/omap/omap-hdmi-audio.c +++ b/sound/soc/omap/omap-hdmi-audio.c @@ -348,7 +348,7 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) default: return -EINVAL; } - ret = snd_soc_register_component(ad->dssdev, &omap_hdmi_component, + ret = devm_snd_soc_register_component(ad->dssdev, &omap_hdmi_component, dai_drv, 1); if (ret) return ret; @@ -383,7 +383,6 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) ret = snd_soc_register_card(card); if (ret) { dev_err(dev, "snd_soc_register_card failed (%d)\n", ret); - snd_soc_unregister_component(ad->dssdev); return ret; } @@ -400,7 +399,6 @@ static int omap_hdmi_audio_remove(struct platform_device *pdev) struct hdmi_audio_data *ad = platform_get_drvdata(pdev); snd_soc_unregister_card(ad->card); - snd_soc_unregister_component(ad->dssdev); return 0; } |