summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai2013-11-06 11:07:12 +0100
committerMark Brown2013-11-07 20:55:18 +0100
commita361f4525d5e01d7ebe2adafc263e107a34834b2 (patch)
treeeb0447e4fba2e305e7fdf9f4a903c655eabfefd9 /sound
parentASoC: txx9: Use WARN_ON() instead of BUG_ON() (diff)
downloadkernel-qcow2-linux-a361f4525d5e01d7ebe2adafc263e107a34834b2.tar.gz
kernel-qcow2-linux-a361f4525d5e01d7ebe2adafc263e107a34834b2.tar.xz
kernel-qcow2-linux-a361f4525d5e01d7ebe2adafc263e107a34834b2.zip
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')
-rw-r--r--sound/soc/codecs/wm8350.c2
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;
}