ASoC: Return proper error if snd_soc_register_dais fails in psc_i2s_of_probe
PATCH 1/1 ASoC: Return proper error if snd_soc_register_dais fails in psc_i2s_of_probe
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/fsl/mpc5200_psc_i2s.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/fsl/mpc5200_psc_i2s.c +1 -1
@@ -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);
Signature · 1 line
1.7.2
Quoted 5 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>--- sound/soc/fsl/mpc5200_psc_i2s.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied, thanks.