Skip to content

Commit

Permalink
ASoC: amd: acp3x: Fix signedness bug in acp3x
Browse files Browse the repository at this point in the history
In acp3x_audio_probe() platform_get_irq() may return error, but i2s_irq now
is unsigned int so the error handling is never triggered.

Fixes: 87d71a1 ("ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt")
Signed-off-by: YueHaibing <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
YueHaibing authored and broonie committed Mar 8, 2022
1 parent 954e615 commit 6f6f28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/amd/raven/acp3x.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct acp3x_platform_info {

struct i2s_dev_data {
bool tdm_mode;
unsigned int i2s_irq;
int i2s_irq;
u16 i2s_instance;
u32 tdm_fmt;
u32 substream_type;
Expand Down

0 comments on commit 6f6f28b

Please sign in to comment.