Skip to content

Commit afa88ee

Browse files
morimotobroonie
authored andcommitted
ASoC: sh: 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 642a722 commit afa88ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/sh/hac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,12 @@ static int hac_soc_platform_probe(struct platform_device *pdev)
319319
if (ret != 0)
320320
return ret;
321321

322-
return snd_soc_register_component(&pdev->dev, &sh4_hac_component,
322+
return devm_snd_soc_register_component(&pdev->dev, &sh4_hac_component,
323323
sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai));
324324
}
325325

326326
static int hac_soc_platform_remove(struct platform_device *pdev)
327327
{
328-
snd_soc_unregister_component(&pdev->dev);
329328
snd_soc_set_ac97_ops(NULL);
330329
return 0;
331330
}

0 commit comments

Comments
 (0)