Skip to content

Commit

Permalink
ASoC: Improve error reporting for AC97 reset failures
Browse files Browse the repository at this point in the history
Print something a bit more verbose to help make errors a little more
obvious.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Nov 21, 2008
1 parent 0e734ad commit 39639fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sound/soc/codecs/ad1980.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static int ad1980_soc_probe(struct platform_device *pdev)

ret = ad1980_reset(codec, 0);
if (ret < 0) {
printk(KERN_ERR "AC97 link error\n");
printk(KERN_ERR "Failed to reset AD1980: AC97 link error\n");
goto reset_err;
}

Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm9712.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ static int wm9712_soc_probe(struct platform_device *pdev)

ret = wm9712_reset(codec, 0);
if (ret < 0) {
printk(KERN_ERR "AC97 link error\n");
printk(KERN_ERR "Failed to reset WM9712: AC97 link error\n");
goto reset_err;
}

Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm9713.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ static int wm9713_soc_probe(struct platform_device *pdev)
wm9713_reset(codec, 0);
ret = wm9713_reset(codec, 1);
if (ret < 0) {
printk(KERN_ERR "AC97 link error\n");
printk(KERN_ERR "Failed to reset WM9713: AC97 link error\n");
goto reset_err;
}

Expand Down

0 comments on commit 39639fa

Please sign in to comment.