From: Takashi Iwai Date: Tue, 5 Nov 2013 17:39:54 +0000 (+0100) Subject: ASoC: wm8580: Use WARN() instead of BUG_ON() X-Git-Tag: v3.13-rc1~122^2^2~4^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a9e0f919c44fad6a2c591c6aed519ca3247515b;p=thirdparty%2Flinux.git ASoC: wm8580: Use WARN() instead of BUG_ON() Use WARN() instead. Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c index 5e9c40fa7eb2a..08a414b57b1ea 100644 --- a/sound/soc/codecs/wm8580.c +++ b/sound/soc/codecs/wm8580.c @@ -736,7 +736,7 @@ static int wm8580_set_sysclk(struct snd_soc_dai *dai, int clk_id, break; default: - BUG_ON("Unknown DAI driver ID\n"); + WARN(1, "Unknown DAI driver ID\n"); return -EINVAL; }