diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-11-05 12:40:03 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-07 14:55:15 -0500 |
commit | 8a2e2c86e979a9b3a53e880be65d5fd12820b932 (patch) | |
tree | 2a0b3503342b657593f8a9ae35b5b1a494eb7d68 /sound/soc/pxa | |
parent | 96b61bc546519ae90317980294c161c86bcd140e (diff) |
ASoC: pxa: Use WARN_ON() instead of BUG_ON()
Use WARN_ON() and handle the error cases accordingly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/pxa2xx-i2s.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index d5340a088858..c0d648d3339f 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c | |||
@@ -165,7 +165,8 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream, | |||
165 | { | 165 | { |
166 | struct snd_dmaengine_dai_dma_data *dma_data; | 166 | struct snd_dmaengine_dai_dma_data *dma_data; |
167 | 167 | ||
168 | BUG_ON(IS_ERR(clk_i2s)); | 168 | if (WARN_ON(IS_ERR(clk_i2s))) |
169 | return -EINVAL; | ||
169 | clk_prepare_enable(clk_i2s); | 170 | clk_prepare_enable(clk_i2s); |
170 | clk_ena = 1; | 171 | clk_ena = 1; |
171 | pxa_i2s_wait(); | 172 | pxa_i2s_wait(); |