mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 23:50:25 +00:00
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>
This commit is contained in:
parent
96b61bc546
commit
8a2e2c86e9
@ -165,7 +165,8 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream,
|
|||||||
{
|
{
|
||||||
struct snd_dmaengine_dai_dma_data *dma_data;
|
struct snd_dmaengine_dai_dma_data *dma_data;
|
||||||
|
|
||||||
BUG_ON(IS_ERR(clk_i2s));
|
if (WARN_ON(IS_ERR(clk_i2s)))
|
||||||
|
return -EINVAL;
|
||||||
clk_prepare_enable(clk_i2s);
|
clk_prepare_enable(clk_i2s);
|
||||||
clk_ena = 1;
|
clk_ena = 1;
|
||||||
pxa_i2s_wait();
|
pxa_i2s_wait();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user