diff options
author | YueHaibing <yuehaibing@huawei.com> | 2022-03-05 20:37:05 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-08 12:27:55 +0000 |
commit | 954e615497cc95cd918bdfe6590abdfbaa068842 (patch) | |
tree | 28717a3e54b608f94e272b24de92c3107c7b9077 /sound/soc/amd/vangogh | |
parent | 5ea14bf62ef4501c13f56fce75f6752cf643748f (diff) |
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: 87d71a128771 ("ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20220305123705.3708-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/vangogh')
-rw-r--r-- | sound/soc/amd/vangogh/acp5x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/vangogh/acp5x.h b/sound/soc/amd/vangogh/acp5x.h index fe5e1fa98974..3d4ce323669e 100644 --- a/sound/soc/amd/vangogh/acp5x.h +++ b/sound/soc/amd/vangogh/acp5x.h @@ -85,7 +85,7 @@ struct i2s_dev_data { bool tdm_mode; bool master_mode; - unsigned int i2s_irq; + int i2s_irq; u16 i2s_instance; u32 tdm_fmt; void __iomem *acp5x_base; |