Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 4fe1984e authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: rt5668: 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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 10ccaa39
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2587,14 +2587,12 @@ static int rt5668_i2c_probe(struct i2c_client *i2c,

	}

	return snd_soc_register_component(&i2c->dev, &soc_component_dev_rt5668,
	return devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_rt5668,
			rt5668_dai, ARRAY_SIZE(rt5668_dai));
}

static int rt5668_i2c_remove(struct i2c_client *i2c)
{
	snd_soc_unregister_component(&i2c->dev);

	return 0;
}