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

Commit 1ebd0061 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: Return proper error if snd_soc_register_dais fails in psc_i2s_of_probe

parent 197ebd40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ static int __devinit psc_i2s_of_probe(struct platform_device *op,
	rc = snd_soc_register_dais(&op->dev, psc_i2s_dai, ARRAY_SIZE(psc_i2s_dai));
	if (rc != 0) {
		pr_err("Failed to register DAI\n");
		return 0;
		return rc;
	}

	psc_dma = dev_get_drvdata(&op->dev);