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

Commit f200c02b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: switch over to use snd_soc_register_component() on mpc5200 i2s

parent ec050851
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -148,6 +148,10 @@ static struct snd_soc_dai_driver psc_i2s_dai[] = {{
	.ops = &psc_i2s_dai_ops,
} };

static const struct snd_soc_component_driver psc_i2s_component = {
	.name		= "mpc5200-i2s",
};

/* ---------------------------------------------------------------------
 * OF platform bus binding code:
 * - Probe/remove operations
@@ -163,7 +167,8 @@ static int psc_i2s_of_probe(struct platform_device *op)
	if (rc != 0)
		return rc;

	rc = snd_soc_register_dais(&op->dev, psc_i2s_dai, ARRAY_SIZE(psc_i2s_dai));
	rc = snd_soc_register_component(&op->dev, &psc_i2s_component,
					psc_i2s_dai, ARRAY_SIZE(psc_i2s_dai));
	if (rc != 0) {
		pr_err("Failed to register DAI\n");
		return rc;
@@ -208,7 +213,7 @@ static int psc_i2s_of_probe(struct platform_device *op)
static int psc_i2s_of_remove(struct platform_device *op)
{
	mpc5200_audio_dma_destroy(op);
	snd_soc_unregister_dais(&op->dev, ARRAY_SIZE(psc_i2s_dai));
	snd_soc_unregister_component(&op->dev);
	return 0;
}