Commit 954e6154 authored by YueHaibing's avatar YueHaibing Committed by Mark Brown

ASoC: amd: acp5x-pcm-dma: Fix signedness bug

In acp5x_audio_probe() platform_get_irq() may return error, but i2s_irq now
is unsigned int so the error handling is never triggered.

Fixes: 87d71a12 ("ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20220305123705.3708-1-yuehaibing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5ea14bf6
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
struct i2s_dev_data { struct i2s_dev_data {
bool tdm_mode; bool tdm_mode;
bool master_mode; bool master_mode;
unsigned int i2s_irq; int i2s_irq;
u16 i2s_instance; u16 i2s_instance;
u32 tdm_fmt; u32 tdm_fmt;
void __iomem *acp5x_base; void __iomem *acp5x_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment