alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: core: display the platform node name if there is no platform name
@ 2012-09-10 22:02 Timur Tabi
  2012-09-10 22:02 ` [PATCH 2/2] ASoC: fsl: use snd_soc_register_card to register the card Timur Tabi
  2012-09-11  0:19 ` [PATCH 1/2] ASoC: core: display the platform node name if there is no platform name Mark Brown
  0 siblings, 2 replies; 7+ messages in thread
From: Timur Tabi @ 2012-09-10 22:02 UTC (permalink / raw)
  To: Mark Brown, alsa-devel

A platform can be matched by either a string name or a device tree node
pointer, so we can't assume that dai_link->platform_name is valid.  Fix
an error message in soc_bind_dai_link() to use the device tree node
name if the platform name is null.

Signed-off-by: Timur Tabi <timur@freescale.com>
---
 sound/soc/soc-core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index ad65459..d81ef5b 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -897,7 +897,8 @@ static int soc_bind_dai_link(struct snd_soc_card *card, int num)
 	}
 	if (!rtd->platform) {
 		dev_err(card->dev, "platform %s not registered\n",
-			dai_link->platform_name);
+			dai_link->platform_name ? :
+				dai_link->platform_of_node->full_name);
 		return -EPROBE_DEFER;
 	}
 
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-11  0:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 22:02 [PATCH 1/2] ASoC: core: display the platform node name if there is no platform name Timur Tabi
2012-09-10 22:02 ` [PATCH 2/2] ASoC: fsl: use snd_soc_register_card to register the card Timur Tabi
2012-09-11  0:13   ` Mark Brown
2012-09-11  0:27     ` Tabi Timur-B04825
2012-09-11  0:31       ` Mark Brown
2012-09-11  0:19 ` [PATCH 1/2] ASoC: core: display the platform node name if there is no platform name Mark Brown
2012-09-11  0:27   ` Tabi Timur-B04825

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).