mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
ASoC: Return proper error if snd_soc_register_dais fails in psc_i2s_of_probe
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
197ebd4053
commit
1ebd0061ed
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue