aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingKun Meng <[email protected]>2023-06-19 15:46:49 +0800
committerMark Brown <[email protected]>2023-06-19 12:59:33 +0100
commit1650e8a8818d516219b2c0cbc203f53cc6cd77a0 (patch)
tree20d0e3f23a2387ed7b6968b52883b2fd42c88205
parent3e4ecd6c4e14e1eff8f52bd89240399e7dac881c (diff)
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: Harshit Mogalapalli <[email protected]> Closes: https://lore.kernel.org/loongarch/[email protected]/ Signed-off-by: YingKun Meng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/loongson/loongson_i2s.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/loongson/loongson_i2s.h b/sound/soc/loongson/loongson_i2s.h
index 52788f6a94ad..89492eebf834 100644
--- a/sound/soc/loongson/loongson_i2s.h
+++ b/sound/soc/loongson/loongson_i2s.h
@@ -45,7 +45,7 @@
struct loongson_dma_data {
dma_addr_t dev_addr; /* device physical address for DMA */
void __iomem *order_addr; /* DMA order register */
- u32 irq; /* DMA irq */
+ int irq; /* DMA irq */
};
struct loongson_i2s {