diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-11-06 11:07:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-07 19:55:18 +0000 |
commit | a361f4525d5e01d7ebe2adafc263e107a34834b2 (patch) | |
tree | eb0447e4fba2e305e7fdf9f4a903c655eabfefd9 /sound/soc | |
parent | cb1b10262f986f865fdbafd0af3327f15f83b8af (diff) |
ASoC: wm8350: Replace BUG() with WARN()
BUG() used in the driver is just to spit the stack trace on buggy
points, not really needed to stop the whole operation. For that
purpose, it'd be more convenient to use WARN() instead with more
error information.
Cc: patches@opensource.wolfsonmicro.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index af1318ddb062..a183dcf3d5c1 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c @@ -274,7 +274,7 @@ static int pga_event(struct snd_soc_dapm_widget *w, break; default: - BUG(); + WARN(1, "Invalid shift %d\n", w->shift); return -1; } |