diff options
author | Mark Brown <broonie@kernel.org> | 2024-01-23 00:08:17 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-01-23 00:08:17 +0300 |
commit | a815f93a7d16d6220adeecc4bd9686bba175f8e1 (patch) | |
tree | b2c65924e25e4ffc0aab28ef3cc75975f4986414 /sound/soc/ti | |
parent | b6ea4284c7e756fab5f78f0129acdb74b35d759f (diff) | |
parent | 00352af2504a90381ec733237c3ef444032d5f1f (diff) | |
download | linux-a815f93a7d16d6220adeecc4bd9686bba175f8e1.tar.xz |
ASoC: use devm_snd_soc_register_card()
Merge series from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:
These are v2 to use devm_snd_soc_register_card() on ASoC.
Diffstat (limited to 'sound/soc/ti')
-rw-r--r-- | sound/soc/ti/omap-hdmi.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c index 29bff9e6337b..4513b527ab97 100644 --- a/sound/soc/ti/omap-hdmi.c +++ b/sound/soc/ti/omap-hdmi.c @@ -379,7 +379,7 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) card->num_links = 1; card->dev = dev; - ret = snd_soc_register_card(card); + ret = devm_snd_soc_register_card(dev, card); if (ret) { dev_err(dev, "snd_soc_register_card failed (%d)\n", ret); return ret; @@ -393,19 +393,11 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) return 0; } -static void omap_hdmi_audio_remove(struct platform_device *pdev) -{ - struct hdmi_audio_data *ad = platform_get_drvdata(pdev); - - snd_soc_unregister_card(ad->card); -} - static struct platform_driver hdmi_audio_driver = { .driver = { .name = DRV_NAME, }, .probe = omap_hdmi_audio_probe, - .remove_new = omap_hdmi_audio_remove, }; module_platform_driver(hdmi_audio_driver); |