ASoC: wm8580: Use WARN() instead of BUG_ON()
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2013 17:39:54 +0000 (18:39 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 6 Nov 2013 10:26:28 +0000 (10:26 +0000)
Use WARN() instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm8580.c

index 5e9c40f..08a414b 100644 (file)
@@ -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;
        }