Now we have devm_snd_soc_register_component().
Let's use it instead of snd_soc_register_component().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
return -ENOMEM;
/* ASoC specific initialization */
- ret = snd_soc_register_component(&hdev->dev,
+ ret = devm_snd_soc_register_component(&hdev->dev,
&hdac_hda_codec, hdac_hda_dais,
ARRAY_SIZE(hdac_hda_dais));
if (ret < 0) {
static int hdac_hda_dev_remove(struct hdac_device *hdev)
{
- snd_soc_unregister_component(&hdev->dev);
return 0;
}