aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-06 23:08:36 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:38 +0200
commitaa7a2d971e5117216dca6cd0d7c41efa9235b0e6 (patch)
tree7f48df133527b70fb77c1113e02cc7077bf73a0f /target/linux/ramips
parentb8345bb5d492a911c2143528ca443a5c4f04a9a3 (diff)
downloadupstream-aa7a2d971e5117216dca6cd0d7c41efa9235b0e6.tar.gz
upstream-aa7a2d971e5117216dca6cd0d7c41efa9235b0e6.tar.bz2
upstream-aa7a2d971e5117216dca6cd0d7c41efa9235b0e6.zip
ralink: mt7620: fix compilation warning for device_reset in i2s driver
Fix compilation warning for device_reset in i2s driver. Fix compilation warning: sound/soc/ralink/ralink-i2s.c: In function 'ralink_i2s_probe': sound/soc/ralink/ralink-i2s.c:885:9: error: ignoring return value of 'device_reset' declared with attribute 'warn_unused_result' [-Werror=unused-result] 885 | device_reset(&pdev->dev); | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errorralink: mt7620: fix compilation warning for device_reset in i2s driver Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch b/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch
index 633c5120e0..551fdd8b3c 100644
--- a/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch
+++ b/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch
@@ -60,7 +60,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+obj-$(CONFIG_SND_RALINK_SOC_I2S) += snd-soc-ralink-i2s.o
--- /dev/null
+++ b/sound/soc/ralink/ralink-i2s.c
-@@ -0,0 +1,966 @@
+@@ -0,0 +1,970 @@
+/*
+ * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
+ * Copyright (C) 2016 Michael Lee <igvtee@gmail.com>
@@ -945,7 +945,11 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+
+ ralink_i2s_init_dma_data(i2s, res);
+
-+ device_reset(&pdev->dev);
++ ret = device_reset(&pdev->dev);
++ if (ret) {
++ dev_err(&pdev->dev, "failed to reset device\n");
++ goto err_clk_disable;
++ }
+
+ ret = ralink_i2s_debugfs_create(i2s);
+ if (ret) {