Commit 1650e8a8 authored by YingKun Meng's avatar YingKun Meng Committed by Mark Brown

ASoC: loongson: change the type of variable irq to int

We use variable 'irq' to store the return value of fwnode_get_irq_byname().
A negative value indicates that the operation failed. If the type of 'irq'
is unsigned int, we never know if the operation failed.
Reported-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Closes: https://lore.kernel.org/loongarch/325dd825-6fa5-0ebc-4b7e-7acf2d2840e4@loongson.cn/Signed-off-by: default avatarYingKun Meng <mengyingkun@loongson.cn>
Link: https://lore.kernel.org/r/20230619074649.3608726-1-mengyingkun@loongson.cnSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3e4ecd6c
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
struct loongson_dma_data { struct loongson_dma_data {
dma_addr_t dev_addr; /* device physical address for DMA */ dma_addr_t dev_addr; /* device physical address for DMA */
void __iomem *order_addr; /* DMA order register */ void __iomem *order_addr; /* DMA order register */
u32 irq; /* DMA irq */ int irq; /* DMA irq */
}; };
struct loongson_i2s { struct loongson_i2s {
......
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