diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-26 17:25:17 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-27 23:35:59 +0400 |
commit | b1bc7b3c9c46d9966f22f05c7cdd9b3e67b13d55 (patch) | |
tree | baf772452c402d2114925ab9ad5847bd1cb484a9 /sound/soc/soc-pcm.c | |
parent | f110bfc7ac552f2518d38067e5facf53c24748ba (diff) | |
download | linux-b1bc7b3c9c46d9966f22f05c7cdd9b3e67b13d55.tar.xz |
ASoC: pcm: Report error code when we fail to init platform
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 314102ad862d..5c3ca2a34661 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2100,7 +2100,9 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) if (platform->driver->pcm_new) { ret = platform->driver->pcm_new(rtd); if (ret < 0) { - dev_err(platform->dev, "ASoC: pcm constructor failed\n"); + dev_err(platform->dev, + "ASoC: pcm constructor failed: %d\n", + ret); return ret; } } |