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>hifive-unleashed-5.1
parent
642a722d31
commit
afa88ee37b
|
@ -319,13 +319,12 @@ static int hac_soc_platform_probe(struct platform_device *pdev)
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return snd_soc_register_component(&pdev->dev, &sh4_hac_component,
|
return devm_snd_soc_register_component(&pdev->dev, &sh4_hac_component,
|
||||||
sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai));
|
sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hac_soc_platform_remove(struct platform_device *pdev)
|
static int hac_soc_platform_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
snd_soc_unregister_component(&pdev->dev);
|
|
||||||
snd_soc_set_ac97_ops(NULL);
|
snd_soc_set_ac97_ops(NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue