diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-10-30 23:01:01 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-31 20:20:19 +0300 |
commit | 93932abaa3c84c2d76ce713bbbad08bad9162483 (patch) | |
tree | 220a75e5b87db15a45f77745cf5bfbc125a52a36 | |
parent | 4c07a43d9691ab1f264337d683dc8655b1edca46 (diff) | |
download | linux-93932abaa3c84c2d76ce713bbbad08bad9162483.tar.xz |
ASoC: stac9766: Cleanup printk usage
Use dev_err() instead of printk(KERN_ERR. This is common practice and makes
it easy to find out which device generated the message. While we are at it
also align the error messages with the other AC'97 drivers.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/stac9766.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c index 9878534ccd16..e88d9ac9cbab 100644 --- a/sound/soc/codecs/stac9766.c +++ b/sound/soc/codecs/stac9766.c @@ -262,7 +262,7 @@ static int stac9766_codec_resume(struct snd_soc_codec *codec) /* give the codec an AC97 warm reset to start the link */ reset: if (reset > 5) { - printk(KERN_ERR "stac9766 failed to resume"); + dev_err(codec->dev, "Failed to resume\n"); return -EIO; } codec->ac97->bus->ops->warm_reset(codec->ac97); @@ -338,7 +338,7 @@ static int stac9766_codec_probe(struct snd_soc_codec *codec) stac9766_reset(codec, 0); ret = stac9766_reset(codec, 1); if (ret < 0) { - printk(KERN_ERR "Failed to reset STAC9766: AC97 link error\n"); + dev_err(codec->dev, "Failed to reset: AC97 link error\n"); goto codec_err; } |