codec register debugging

Message ID 1427413876-23194-1-git-send-email-john.stultz@linaro.org
State New
Headers show

Commit Message

John Stultz March 26, 2015, 11:51 p.m.
Change-Id: Ife1dc06fca484854ceaf74ecac9172c7345ad38c
---
 sound/soc/soc-core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 7672e72..8329868 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -4051,7 +4051,7 @@  int snd_soc_register_codec(struct device *dev,
 	struct snd_soc_codec *codec;
 	int ret, i;
 
-	dev_dbg(dev, "codec register %s\n", dev_name(dev));
+	printk("codec register %s\n", dev_name(dev));
 
 	codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
 	if (codec == NULL)
@@ -4126,11 +4126,11 @@  int snd_soc_register_codec(struct device *dev,
 	/* register any DAIs */
 	ret = snd_soc_register_dais(dev, dai_drv, num_dai);
 	if (ret < 0) {
-		dev_err(codec->dev, "ASoC: Failed to regster DAIs: %d\n", ret);
+		printk("ASoC: Failed to regster DAIs: %d\n", ret);
 		goto fail_codec_name;
 	}
 
-	dev_dbg(codec->dev, "ASoC: Registered codec '%s'\n", codec->name);
+	printk("ASoC: Registered codec '%s'\n", codec->name);
 	return 0;
 
 fail_codec_name: