Skip to content

Commit fb77436

Browse files
morimotobroonie
authored andcommitted
ASoC: txx9: use devm_snd_soc_register_component()
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>
1 parent afa88ee commit fb77436

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/txx9/txx9aclc-ac97.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,12 @@ static int txx9aclc_ac97_dev_probe(struct platform_device *pdev)
208208
if (err < 0)
209209
return err;
210210

211-
return snd_soc_register_component(&pdev->dev, &txx9aclc_ac97_component,
211+
return devm_snd_soc_register_component(&pdev->dev, &txx9aclc_ac97_component,
212212
&txx9aclc_ac97_dai, 1);
213213
}
214214

215215
static int txx9aclc_ac97_dev_remove(struct platform_device *pdev)
216216
{
217-
snd_soc_unregister_component(&pdev->dev);
218217
snd_soc_set_ac97_ops(NULL);
219218
return 0;
220219
}

0 commit comments

Comments
 (0)